ENOTDIR translation is funny
Robey Pointer
robey at lag.net
Fri Jan 20 18:00:18 GMT 2006
On 19 Jan 2006, at 23:46, Robert Collins wrote:
> Why do we translate ENOTDIR to NoSuchFile?
>
> a rmdir of a file triggers ENOTDIR, but its definately not the case
> that
> that is NoSuchFile.
It may be because sftp servers tend to translate ENOTDIR to
SFTP_NO_SUCH_FILE. (SFTP only has 4 real error codes.) As I guess
people are sick of hearing me say: We can't really depend on good
error fidelity from transports, so we shouldn't put too much weight
on fine-grained error codes. I think HTTP can barely do better than
"it succeeded" vs "it failed".
robey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060120/f26eabc6/attachment.pgp
More information about the bazaar
mailing list