File psmisc-git-3638cc55b4d08851faba46635d737b24d016665b.patch of Package psmisc.23621
commit 3638cc55b4d08851faba46635d737b24d016665b
Author: Brad Jorsch <anomie@users.sourceforge.net>
Date: Fri Feb 28 21:55:02 2014 +1100
Typo in fuser makes -M on all the time
Brad found that fuser had the -M option on all the time.
A simple but significant typo caused this, thanks the the patch.
Bug-Debian: http://bugs.debian.org/740275
Signed-off-by: Craig Small <csmall@enc.com.au>
================================================================================
---
psmisc-22.21/ChangeLog | 3 +++
psmisc-22.21/src/fuser.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
--- psmisc-22.21/ChangeLog
+++ psmisc-22.21/ChangeLog 2020-04-23 12:09:48.463511229 +0000
@@ -1,3 +1,6 @@
+Changes in 22.22
+================
+ * Fixed typo in fuser which has -M on Debian #740275
* Make usage of linked lists of devices found in
/proc/self/mountinfo optional
* Make timeout() in timeout.c work with shared mmap to
--- psmisc-22.21/src/fuser.c
+++ psmisc-22.21/src/fuser.c 2020-04-23 12:11:33.701537301 +0000
@@ -1245,7 +1245,7 @@ int main(int argc, char *argv[])
usage(_("No process specification given"));
/* Check if -M flag was used and if so check mounts */
- if (opts * OPT_ISMOUNTPOINT) {
+ if (opts & OPT_ISMOUNTPOINT) {
read_proc_mounts(&mounts);
check_mountpoints(&mounts, &names_head, &names_tail);
}