mirror of
https://github.com/sheumann/hush.git
synced 2024-08-26 12:29:04 +00:00
just use bb_xfopen()
This commit is contained in:
parent
bb12d6f728
commit
705fad2964
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user