Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374219 - sys-process/psmisc: "fuser -s" exits with a different value than "fuser" if path is a mount point
Summary: sys-process/psmisc: "fuser -s" exits with a different value than "fuser" if p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 12:05 UTC by Christian Ruppert (idl0r)
Modified: 2012-01-28 14:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Ruppert (idl0r) gentoo-dev 2011-07-06 12:05:52 UTC
If I run fuser on a mount point (not used but mounted) then "fuser /path/to/foo" exists with 1 which is true while "fuser -s ..." exists with 0 which isn't true.

Tested with psmisc-22.12 and 22.13.

/chroot/dns is a mount point
# fuser -v /chroot/dns/
                     USER        PID ACCESS COMMAND
/chroot/dns/:        root     kernel mount /chroot/dns

So nothing uses it and the "1" by "fuser ..." is true, the "0" by "fuser -s ..." isn't.

So you'll get false-positives if you use "fuser -s" in your scripts or whatever else.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-01-28 06:10:21 UTC
How is 22.15?
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2012-01-28 14:52:16 UTC
Seems to be fixed in 22.15.