From: Craig Small Date: Thu, 30 Aug 2012 22:09:45 +0000 (+1000) Subject: fuser -m regression X-Git-Tag: v22.20rc1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cd360d6b071d09207bc19c29f835cc1280e9861;p=psmisc 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 --- diff --git a/ChangeLog b/ChangeLog index 1c5d57b..ce56ba0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ Changes in 22.20 ================ * pstree sorts properly on names Debian #682014 + * fuser -m regresion fixed SF #3559232, thanks to hanpt Changes in 22.19 ================ * killall with no args exits again SF #3536526 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)