mneumann 2008/08/17 03:35:18 PDT
DragonFly src repository
Modified files:
sbin/hammer cmd_pseudofs.c
Log:
Fix function getpfs for pseudo-filesystems specified as absolute path
located in the root directory.
Finding the path portion of e.g. "/tmp.pfs" failed, as it produced an
empty string "" for which open(2) naturally fails. Instead we now detect
this situation (empty string) and use "/".
Fixes Issue: 1122
Revision Changes Path
1.9 +4 -0 src/sbin/hammer/cmd_pseudofs.c
http://www.dragonflybsd.org/cvsweb/src/sbin/hammer/cmd_pseudofs.c.diff?r1=1.8&r2=1.9&f=u