re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-07-10 14:12:03 +02:00
parent f7c1e935f7
commit ef26ea7389
2 changed files with 27 additions and 1 deletions

9
.gitignore vendored
View File

@ -1,2 +1,9 @@
SOURCES/psmisc-23.1.tar.xz
psmisc-22.10.tar.gz
/psmisc-22.13.tar.gz
/psmisc-22.14.tar.gz
/psmisc-22.15.tar.gz
/psmisc-22.16.tar.gz
/psmisc-22.19.tar.gz
/psmisc-22.20.tar.gz
/psmisc-22.21.tar.gz
/psmisc-23.1.tar.xz

View File

@ -0,0 +1,19 @@
diff --git a/src/fuser.c b/src/fuser.c
index 4688dfe..d19075a 100644
--- a/src/fuser.c
+++ b/src/fuser.c
@@ -1112,7 +1112,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;