[Libsysio-commit] HEAD: libsysio/misc fhi.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-08-03 23:19:07
|
Update of /cvsroot/libsysio/libsysio/misc In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25532 Modified Files: fhi.c Log Message: fhi_getdirentries64 routine failed unless somebody already had the directory open. We must always open and close it ourselves. Fixed. Index: fhi.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/fhi.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -b -B -p -r1.3 -r1.4 --- fhi.c 28 Jul 2009 17:00:04 -0000 1.3 +++ fhi.c 3 Aug 2009 23:18:52 -0000 1.4 @@ -1031,7 +1031,13 @@ SYSIO_INTERFACE_NAME(fhi_getdirentries64 err = -ESTALE; break; } + + cc = _sysio_open(pno, O_RDONLY, 0); + if (cc) + break; cc = _sysio_p_filldirentries(pno, buf, nbytes, basep); + if (PNOP_CLOSE(pno) != 0) + abort(); P_PUT(pno); } while (0); |