diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-03 23:59:17 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-03 23:59:17 +0000 |
commit | e2da113a27021c9b56a392272cc535479695166f (patch) | |
tree | e571b8206036240d544680fe2218e30a89080073 | |
parent | e6e3865afff41399ae9aada791c4e562e896f441 (diff) | |
download | busybox-w32-e2da113a27021c9b56a392272cc535479695166f.tar.gz busybox-w32-e2da113a27021c9b56a392272cc535479695166f.tar.bz2 busybox-w32-e2da113a27021c9b56a392272cc535479695166f.zip |
just use bb_xfopen()
git-svn-id: svn://busybox.net/trunk/busybox@13060 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | modutils/lsmod.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index f2ee19f8f..3d9f700fb 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c | |||
@@ -169,10 +169,7 @@ extern int lsmod_main(int argc, char **argv) | |||
169 | FILE *file; | 169 | FILE *file; |
170 | char line[4096]; | 170 | char line[4096]; |
171 | 171 | ||
172 | file = fopen("/proc/modules", "r"); | 172 | file = bb_xfopen("/proc/modules", "r"); |
173 | |||
174 | if (!file) | ||
175 | bb_error_msg_and_die("Opening /proc/modules"); | ||
176 | 173 | ||
177 | while (fgets(line, sizeof(line), file)) { | 174 | while (fgets(line, sizeof(line), file)) { |
178 | char *tok; | 175 | char *tok; |