Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 716b89e72a1b3c59a1b416625e9fb8d6 > files > 1

psmisc-22.11-2mdv2010.2.src.rpm

diff --git a/src/fuser.c b/src/fuser.c
index f748c91..662d652 100644
--- a/src/fuser.c
+++ b/src/fuser.c
@@ -1104,7 +1104,13 @@ print_matches(struct names *names_head, const opt_type opts,
 
 	for (nptr = names_head; nptr != NULL; nptr = nptr->next) {
 		if (opts & OPT_SILENT) {
-			have_match = nptr->matched_procs ? 1 : have_match;
+			for (pptr = nptr->matched_procs; pptr != NULL;
+			     pptr = pptr->next) {
+				if(pptr->proc_type != PTYPE_NORMAL)
+					continue;
+
+				have_match = 1;
+			}
 		} else {	/* We're not silent */
 			if ((opts & OPT_ALLFILES) == 0) {
 				name_has_procs = 0;