Fix function getpfs for pseudo-filesystems specified as absolute path
commit9139a9996efdfe260b1f0a4453e6f39d2f0bdc9c
authormneumann <mneumann>
Sun, 17 Aug 2008 10:35:18 +0000 (17 10:35 +0000)
committermneumann <mneumann>
Sun, 17 Aug 2008 10:35:18 +0000 (17 10:35 +0000)
tree100595ded158793b8b4ebdcbb04d8ce8d32580a9
parent0a5d8a4804a3367e382db28f4c35719db0dc98a2
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
sbin/hammer/cmd_pseudofs.c