On Fri, Mar 4, 2011 at 9:25 AM, M. Mohan Kumar <mo...@in.ibm.com> wrote: > +static int passthrough_create(FsContext *fs_ctx, const char *path, int flags, > + FsCred *credp) > +{ > + V9fsFileObjectRequest request; > + int fd; > + > + fd = fill_fileobjectrequest(&request, path, credp); > + if (fd < 0) { > + errno = -1; > + return -1; > + }
I think it should be errno = fd since fill_fileobjectrequest() returns an -errno. Stefan