aboutsummaryrefslogtreecommitdiff
path: root/libbb/procps.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/procps.c')
-rw-r--r--libbb/procps.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/procps.c b/libbb/procps.c
index e73c0dc64..25f42ffc8 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -50,9 +50,7 @@ procps_status_t * procps_scan(int save_user_arg0)
50 struct stat sb; 50 struct stat sb;
51 51
52 if (!dir) { 52 if (!dir) {
53 dir = opendir("/proc"); 53 dir = bb_xopendir("/proc");
54 if(!dir)
55 bb_error_msg_and_die("Can't open /proc");
56 } 54 }
57 for(;;) { 55 for(;;) {
58 if((entry = readdir(dir)) == NULL) { 56 if((entry = readdir(dir)) == NULL) {