diff options
Diffstat (limited to 'miscutils/makedevs.c')
-rw-r--r-- | miscutils/makedevs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index 3b45d70b4..ed08f7ece 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c | |||
@@ -80,7 +80,7 @@ int makedevs_main(int argc, char **argv) | |||
80 | 80 | ||
81 | getopt32(argv, "d:", &line); | 81 | getopt32(argv, "d:", &line); |
82 | if (line) | 82 | if (line) |
83 | table = xfopen(line, "r"); | 83 | table = xfopen_for_read(line); |
84 | 84 | ||
85 | if (optind >= argc || (rootdir=argv[optind])==NULL) { | 85 | if (optind >= argc || (rootdir=argv[optind])==NULL) { |
86 | bb_error_msg_and_die("root directory not specified"); | 86 | bb_error_msg_and_die("root directory not specified"); |