From 06c3bb5ca810e6262c39ea476e2dfa80aa788b20 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Thu, 23 Jun 2011 22:15:12 +1000 Subject: [PATCH] Really apply the fuser -s patch --- ChangeLog | 4 ++++ src/fuser.c | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) 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; -- 2.50.1