projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dc6195
)
fuser: fix inverted access() check. Closes 3799.
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 29 May 2011 00:03:38 +0000
(
02:03
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 29 May 2011 00:03:38 +0000
(
02:03
+0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/fuser.c
patch
|
blob
|
history
diff --git
a/procps/fuser.c
b/procps/fuser.c
index 2a7c3106ef743f3665e0f61621aab7b07c17ed1c..8d63a73133156b6fe6f0725c6a2be1eaf73da8bd 100644
(file)
--- 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);