diff options
Diffstat (limited to 'procps/fuser.c')
-rw-r--r-- | procps/fuser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/procps/fuser.c b/procps/fuser.c index ca7c7e267..d2ac9ebfc 100644 --- a/procps/fuser.c +++ b/procps/fuser.c | |||
@@ -109,7 +109,7 @@ static inode_list *scan_proc_net(const char *proto, | |||
109 | tmp_dev = find_socket_dev(); | 109 | tmp_dev = find_socket_dev(); |
110 | 110 | ||
111 | sprintf(path, "/proc/net/%s", proto); | 111 | sprintf(path, "/proc/net/%s", proto); |
112 | f = fopen(path, "r"); | 112 | f = fopen_for_read(path); |
113 | if (!f) | 113 | if (!f) |
114 | return ilist; | 114 | return ilist; |
115 | 115 | ||
@@ -158,7 +158,7 @@ static pid_list *scan_pid_maps(const char *fname, pid_t pid, | |||
158 | long long uint64_inode; | 158 | long long uint64_inode; |
159 | dev_t dev; | 159 | dev_t dev; |
160 | 160 | ||
161 | file = fopen(fname, "r"); | 161 | file = fopen_for_read(fname); |
162 | if (!file) | 162 | if (!file) |
163 | return plist; | 163 | return plist; |
164 | while (fgets(line, MAX_LINE, file)) { | 164 | while (fgets(line, MAX_LINE, file)) { |