[Libsysio-commit] HEAD: libsysio/misc fhi.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-02-25 06:01:34
|
Update of /cvsroot/libsysio/libsysio/misc In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7705 Modified Files: fhi.c Log Message: fhi_lookup now sets ND_NOFOLLOW; It won't follow if the last component of the passed path is a symbolic link. Index: fhi.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/misc/fhi.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -w -b -B -p -r1.1 -r1.2 --- fhi.c 4 Feb 2009 20:07:23 -0000 1.1 +++ fhi.c 25 Feb 2009 06:01:23 -0000 1.2 @@ -562,7 +562,7 @@ SYSIO_INTERFACE_NAME(fhi_lookup)(struct do { INTENT_INIT(&intent, iopmask, NULL, NULL); - err = fhi_namei(parent_fhi, path, 0, &intent, &pno); + err = fhi_namei(parent_fhi, path, ND_NOFOLLOW, &intent, &pno); if (err) break; len = fhi_load(parent_fhi->fhi_export, pno, result); |