diff options
Diffstat (limited to 'procps/fuser.c')
-rw-r--r-- | procps/fuser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/fuser.c b/procps/fuser.c index addf1a7d8..be19098dd 100644 --- a/procps/fuser.c +++ b/procps/fuser.c | |||
@@ -271,7 +271,7 @@ Find processes which use FILEs or PORTs | |||
271 | if (sscanf(*pp, "%u/%4s", &port, tproto) != 2) | 271 | if (sscanf(*pp, "%u/%4s", &port, tproto) != 2) |
272 | goto file; | 272 | goto file; |
273 | sprintf(path, "/proc/net/%s", tproto); | 273 | sprintf(path, "/proc/net/%s", tproto); |
274 | if (access(path, R_OK) != 0) { /* PORT/PROTO */ | 274 | if (access(path, R_OK) == 0) { /* PORT/PROTO */ |
275 | scan_proc_net(path, port); | 275 | scan_proc_net(path, port); |
276 | } else { /* FILE */ | 276 | } else { /* FILE */ |
277 | file: | 277 | file: |