projects
/
platform
/
upstream
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libbb: [x]fopen_for_{read,write} introduced and used.
[platform/upstream/busybox.git]
/
coreutils
/
dos2unix.c
diff --git
a/coreutils/dos2unix.c
b/coreutils/dos2unix.c
index
311dc13
..
309cbc3
100644
(file)
--- 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);