[Libsysio-commit] HEAD: libsysio/src open.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-09-11 06:23:54
|
Update of /cvsroot/libsysio/libsysio/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24374 Modified Files: open.c Log Message: In open, parent was always being put when we were done with it. This should only have been done when the lock was acquired. I.e., it's only needed when ND_WANTPARENT was passed to namei. Fixed. Index: open.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/open.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -w -b -B -p -r1.35 -r1.36 --- open.c 4 Aug 2009 15:01:24 -0000 1.35 +++ open.c 11 Sep 2009 06:23:42 -0000 1.36 @@ -179,6 +179,7 @@ SYSIO_INTERFACE_NAME(open)(const char *p * Ask for the open/creat. */ rtn = _sysio_open(pno, flags, mode); + if (ndflags & ND_WANTPARENT) P_PUT(pno->p_parent); if (rtn) goto error; |