On Fri, 2008-09-12 at 09:24 +0200, Bastian Blank wrote: > On Thu, Sep 11, 2008 at 11:44:00PM -0700, Steve Langasek wrote: > > Given that sshfs's errno return is "wildly wrong", > > The errors are not "wrong". The lists in the documentation are not > terminal. > > The open group spec say[1]: > | The ERRORS section on each page specifies whether an error will be > returned, or > | whether it may be returned. Implementations will not generate a different > error > | number from the ones described here for error conditions described in this > | specification, but may generate additional errors unless explicitly > disallowed > | for a particular function.
Linux is not merely the open group spec, but adds additional specifications. In Linux, the standard error returned by link in the case where a given filesystem type does not support hard links is EPERM. You might check the actual Linux man page. Returning ENOSYS is quite incorrect; that error is the one to return if the kernel did not implement the link system call at all. Thomas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

