]> granicus.if.org Git - psmisc/commitdiff
Typo in fuser makes -M on all the time
authorBrad Jorsch <anomie@users.sourceforge.net>
Fri, 28 Feb 2014 10:55:02 +0000 (21:55 +1100)
committerCraig Small <csmall@enc.com.au>
Fri, 28 Feb 2014 10:55:02 +0000 (21:55 +1100)
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>
ChangeLog
src/fuser.c

index fd1cccf3738d339bb70b09dff395b8c90d7592c0..e5f784cbe86cda9036c1dd4d6fc8763155f90318 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Changes in 22.22
+================
+       * Fixed typo in fuser which has -M on Debian #740275
+
 Changes in 22.21
 ================
        * Missing comma in fuser(1) added Debian #702391
index b485f65c13bee4acf55adc651b1a6eeaf63dbb23..389b3029e44ad7b98046cebc41e3c7d7f4a0d026 100644 (file)
@@ -1174,7 +1174,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) {
            check_mountpoints(&mounts, &names_head, &names_tail);
        }