commit 44d363cfcaa3d904ed4e62dbf629f68b4450f46a Author: Matt Housh <jaeger@crux.nu> Date: Thu Oct 23 09:07:24 2014 -0500 psmisc: fix fuser -M flag always-on bug diff --git a/psmisc/.md5sum b/psmisc/.md5sum index 416bd43..581840d 100644 --- a/psmisc/.md5sum +++ b/psmisc/.md5sum @@ -1 +1,2 @@ +6d0386913eb0a88e43aa9bc868cb0eb5 fuseropts.patch 935c0fd6eb208288262b385fa656f1bf psmisc-22.21.tar.gz diff --git a/psmisc/Pkgfile b/psmisc/Pkgfile index 416d08c..f820091 100644 --- a/psmisc/Pkgfile +++ b/psmisc/Pkgfile @@ -5,11 +5,16 @@ name=psmisc version=22.21 -release=1 -source=(http://downloads.sourceforge.net/project/$name/$name/$name-$version.tar.gz) +release=2 +source=(http://downloads.sourceforge.net/project/$name/$name/$name-$version.tar.gz \ + fuseropts.patch) build() { cd $name-$version + + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740275 + patch -p1 -i $SRC/fuseropts.patch + ./configure --prefix=/usr --disable-nls --mandir=/usr/man make make DESTDIR=$PKG install diff --git a/psmisc/fuseropts.patch b/psmisc/fuseropts.patch new file mode 100644 index 0000000..3bac333 --- /dev/null +++ b/psmisc/fuseropts.patch @@ -0,0 +1,12 @@ +diff -ur a/src/fuser.c b/src/fuser.c +--- a/src/fuser.c 2014-01-31 08:07:32.000000000 -0500 ++++ b/src/fuser.c 2014-02-27 12:34:44.352910007 -0500 +@@ -1174,7 +1174,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); + } +