[Libsysio-commit] HEAD: libsysio/src chdir.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2004-09-16 14:41:41
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13425/src Modified Files: chdir.c Log Message: Henry Pierce noticed that the Linux-ish support for getcwd with a zero buffer size was gone. This had been done to make it POSIX compatible. However, we went overboard. It only must be applied when the passed buffer is non-null. The feature returns with this deposit. Index: chdir.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/chdir.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -w -b -B -p -r1.20 -r1.21 --- chdir.c 26 Aug 2004 09:02:28 -0000 1.20 +++ chdir.c 16 Sep 2004 14:41:32 -0000 1.21 @@ -154,7 +154,7 @@ _sysio_p_path(struct pnode *pno, char ** cur = pno; - if (!size) + if (!size && buf && *buf) return -EINVAL; /* |