[Libsysio-commit] HEAD: libsysio/src namei.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2008-03-04 18:07:13
|
Update of /cvsroot/libsysio/libsysio/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6648/src Modified Files: namei.c Log Message: When doing an automount the pnode for the ".mount" file was not being held; It was released immediately after the lookup. It should be nailed down during the automount as well. It is now. Index: namei.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/namei.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -w -b -B -p -r1.26 -r1.27 --- namei.c 1 May 2007 16:33:53 -0000 1.26 +++ namei.c 4 Mar 2008 18:07:08 -0000 1.27 @@ -303,9 +303,7 @@ _sysio_path_walk(struct pnode *parent, s NULL, NULL, 1); - if (pno) - P_RELE(pno); - if (!err && _sysio_automount(pno) == 0) { + if (!err && (err = _sysio_automount(pno) == 0)) { struct pnode *root; /* @@ -337,6 +335,10 @@ _sysio_path_walk(struct pnode *parent, s path = nd->nd_path; nd->nd_amcnt++; + } + if (pno) + P_RELE(pno); + if (!err) { /* * Must go back top and retry with this * new pnode as parent. |