diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-03 23:59:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-03 23:59:17 +0000 |
commit | 705fad296447295ef4e71e301c5b7cdbf186d6a1 (patch) | |
tree | e571b8206036240d544680fe2218e30a89080073 | |
parent | bb12d6f728b7adfbf7fd6e062c11835b3965d3b8 (diff) | |
download | busybox-705fad296447295ef4e71e301c5b7cdbf186d6a1.tar.gz |
just use bb_xfopen()
-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) FILE *file; char line[4096]; - file = fopen("/proc/modules", "r"); - - if (!file) - bb_error_msg_and_die("Opening /proc/modules"); + file = bb_xfopen("/proc/modules", "r"); while (fgets(line, sizeof(line), file)) { char *tok; |