[Libsysio-commit] HEAD: libsysio/src unlink.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-08-17 23:28:53
|
Update of /cvsroot/libsysio/libsysio/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2321/src Modified Files: unlink.c Log Message: When I moved the permission check to the p-node routine it was incomplete. Now, check permission and return error if there was one, otherwise continue on with the operation. Index: unlink.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/unlink.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -w -b -B -p -r1.24 -r1.25 --- unlink.c 17 Aug 2009 17:47:22 -0000 1.24 +++ unlink.c 17 Aug 2009 23:28:41 -0000 1.25 @@ -69,7 +69,8 @@ _sysio_p_unlink(struct pnode *pno) if (S_ISDIR(pno->p_base->pb_ino->i_stbuf.st_mode)) return -EISDIR; err = _sysio_permitted(pno->p_parent, W_OK); - return -EPERM; + if (err) + return err; /* * Call the FS implementation. */ |