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:
bb12d6f
)
just use bb_xfopen()
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 3 Jan 2006 23:59:17 +0000
(23:59 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 3 Jan 2006 23:59:17 +0000
(23:59 -0000)
modutils/lsmod.c
patch
|
blob
|
history
diff --git
a/modutils/lsmod.c
b/modutils/lsmod.c
index f2ee19f8ff18c7fc08d998264b576815368eb33c..3d9f700fbe17672204bd174c483414a58d9d49ee 100644
(file)
--- 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;