[Libsysio-commit] HEAD: libsysio/src chdir.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-08-26 09:02:37
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20538 Modified Files: chdir.c Log Message: Fixed error return for zero length buffer specification. Now returns EINVAL as it should. Index: chdir.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/chdir.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -w -b -B -p -r1.19 -r1.20 --- chdir.c 27 Jul 2004 15:00:43 -0000 1.19 +++ chdir.c 26 Aug 2004 09:02:28 -0000 1.20 @@ -154,6 +154,9 @@ _sysio_p_path(struct pnode *pno, char ** cur = pno; + if (!size) + return -EINVAL; + /* * Walk up the tree to the root, summing the component name * lengths and counting the vertices. |