summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
Diffstat (limited to 'procps')
-rw-r--r--procps/fuser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/fuser.c b/procps/fuser.c
index 2a7c310..8d63a73 100644
--- a/procps/fuser.c
+++ b/procps/fuser.c
@@ -299,7 +299,7 @@ int fuser_main(int argc UNUSED_PARAM, char **argv)
strcpy(path, "/proc/net/");
if (sscanf(*pp, "%u/%4s", &port, path + sizeof("/proc/net/")-1) == 2
- && access(path, R_OK) != 0
+ && access(path, R_OK) == 0
) {
/* PORT/PROTO */
scan_proc_net_or_maps(path, port);