psmisc/psmisc-22.6-twoerr.patch
Daniel Novotny aca91c4a41 fix #588322
2010-05-18 12:13:52 +00:00

15 lines
683 B
Diff

diff -up psmisc-22.6/src/fuser.c.twoerr psmisc-22.6/src/fuser.c
--- psmisc-22.6/src/fuser.c.twoerr 2010-05-05 13:41:01.000000000 +0200
+++ psmisc-22.6/src/fuser.c 2010-05-05 13:43:01.000000000 +0200
@@ -818,8 +818,8 @@ int main(int argc, char *argv[])
break;
default: /* FILE */
this_name->filename = strdup(argv[optc]);
- parse_file(this_name, &match_inodes);
- parse_unixsockets(this_name, &match_inodes, unixsockets);
+ if( parse_file(this_name, &match_inodes) == 0 )
+ parse_unixsockets(this_name, &match_inodes, unixsockets);
if (opts & OPT_MOUNTPOINT || opts & OPT_MOUNTS)
parse_mounts(this_name, &match_devices, opts);
break;