diff options
author | Craig Small <csmall@users.sourceforge.net> | 2012-08-31 08:09:45 +1000 |
---|---|---|
committer | Craig Small <csmall@users.sourceforge.net> | 2012-08-31 08:09:45 +1000 |
commit | 1cd360d6b071d09207bc19c29f835cc1280e9861 (patch) | |
tree | fbc81b6a9d36538fd2401f6b2ece143adf7c2a2d /src | |
parent | 2d7933d23257becad992f86c95fc22c7862e7d35 (diff) |
fuser -m regression
While fuser -m /boot worked, fuser -m /dev/blah would show everything.
This was because the filesystem for /dev was added as a target, not the
filesystem /dev/blah.
This simple fix suggested by SF user hanpt works well.
Ref: https://sourceforge.net/tracker/?func=detail&aid=3559232&group_id=15273&atid=115273
Signed-off-by: Craig Small <csmall@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/fuser.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/fuser.c b/src/fuser.c index e29a345..7db3132 100644 --- a/src/fuser.c +++ b/src/fuser.c @@ -4,7 +4,7 @@ * Based on fuser.c Copyright (C) 1993-2005 Werner Almesberger and Craig Small * * Completely re-written - * Copyright (C) 2005-2011 Craig Small + * Copyright (C) 2005-2012 Craig Small * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -449,14 +449,6 @@ int parse_file(struct names *this_name, struct inode_list **ino_list, const char free(this_name->filename); this_name->filename = strdup(new); } -#ifdef _LISTS_H - if (opts & OPT_MOUNTS) { - this_name->st.st_dev = device(this_name->filename); - this_name->st.st_ino = 0; - add_inode(ino_list, this_name, this_name->st.st_dev, this_name->st.st_ino); - return 0; - } -#endif if (timeout(stat, this_name->filename, &(this_name->st), 5) != 0) { if (errno == ENOENT) |