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) resolved_fn = xmalloc_follow_symlinks(fn); if (resolved_fn == NULL) bb_simple_perror_msg_and_die(fn); - in = xfopen(resolved_fn, "r"); + in = xfopen_for_read(resolved_fn); fstat(fileno(in), &st); temp_fn = xasprintf("%sXXXXXX", resolved_fn); |