diff options
Diffstat (limited to 'coreutils/dos2unix.c')
-rw-r--r-- | coreutils/dos2unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index 311dc1380..309cbc3b8 100644 --- a/coreutils/dos2unix.c +++ b/coreutils/dos2unix.c | |||
@@ -35,7 +35,7 @@ static void convert(char *fn, int conv_type) | |||
35 | resolved_fn = xmalloc_follow_symlinks(fn); | 35 | resolved_fn = xmalloc_follow_symlinks(fn); |
36 | if (resolved_fn == NULL) | 36 | if (resolved_fn == NULL) |
37 | bb_simple_perror_msg_and_die(fn); | 37 | bb_simple_perror_msg_and_die(fn); |
38 | in = xfopen(resolved_fn, "r"); | 38 | in = xfopen_for_read(resolved_fn); |
39 | fstat(fileno(in), &st); | 39 | fstat(fileno(in), &st); |
40 | 40 | ||
41 | temp_fn = xasprintf("%sXXXXXX", resolved_fn); | 41 | temp_fn = xasprintf("%sXXXXXX", resolved_fn); |