From: Craig Small Date: Thu, 23 Jun 2011 12:15:12 +0000 (+1000) Subject: Really apply the fuser -s patch X-Git-Tag: v22.15~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06c3bb5ca810e6262c39ea476e2dfa80aa788b20;p=psmisc Really apply the fuser -s patch --- diff --git a/ChangeLog b/ChangeLog index f10cea1..815a8a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Changes in 22.15 +================ + * Really apply patch for SF#31110178 RH#651794 + Changes in 22.14 ================ * Fix file descriptor as weel as memory leaks in fuser diff --git a/src/fuser.c b/src/fuser.c index 5f27179..8f600aa 100644 --- a/src/fuser.c +++ b/src/fuser.c @@ -1160,8 +1160,13 @@ print_matches(struct names *names_head, const opt_type opts, for (nptr = names_head; nptr != NULL; nptr = nptr->next) { if (opts & OPT_SILENT) { - if (nptr->matched_procs != NULL) - have_match = 1; + 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;