psmisc/psmisc-git-3638cc55b4d08851faba46635d737b24d016665b.patch
Dirk Mueller fe53807083 Accepting request 231322 from home:oertel:branches:Base:System
- add patch to fix fuser -M option active all the time (bnc#874983)
  psmisc-git-3638cc55b4d08851faba46635d737b24d016665b.patch

OBS-URL: https://build.opensuse.org/request/show/231322
OBS-URL: https://build.opensuse.org/package/show/Base:System/psmisc?expand=0&rev=72
2014-04-25 10:02:11 +00:00

35 lines
1.1 KiB
Diff

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
+++ psmisc-22.21/ChangeLog
@@ -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
@@ -1151,7 +1151,7 @@
usage(_("No process specification given"));
/* Check if -M flag was used and if so check mounts */
- if (opts * OPT_ISMOUNTPOINT) {
+ if (opts & OPT_ISMOUNTPOINT) {
check_mountpoints(&mounts, &names_head, &names_tail);
}