]> granicus.if.org Git - psmisc/commitdiff
Really apply the fuser -s patch
authorCraig Small <csmall@users.sourceforge.net>
Thu, 23 Jun 2011 12:15:12 +0000 (22:15 +1000)
committerCraig Small <csmall@users.sourceforge.net>
Thu, 23 Jun 2011 12:15:12 +0000 (22:15 +1000)
ChangeLog
src/fuser.c

index f10cea162eb9b3e516adf2f9323428f17dc487c0..815a8a32062bddcd10d351f682100969cd7baaf9 100644 (file)
--- 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
index 5f271792c7614b553d3c035baf79f3e2d24c933c..8f600aa7eb03d5d2000871b0c66cbd4a4271153d 100644 (file)
@@ -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;