diff options
Diffstat (limited to 'coreutils/cat.c')
-rw-r--r-- | coreutils/cat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/cat.c b/coreutils/cat.c index 10eb29c4d..a95980552 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c | |||
@@ -26,10 +26,10 @@ int cat_main(int argc, char **argv) | |||
26 | } | 26 | } |
27 | 27 | ||
28 | do { | 28 | do { |
29 | f = bb_wfopen_input(*argv); | 29 | f = fopen_or_warn_stdin(*argv); |
30 | if (f) { | 30 | if (f) { |
31 | off_t r = bb_copyfd_eof(fileno(f), STDOUT_FILENO); | 31 | off_t r = bb_copyfd_eof(fileno(f), STDOUT_FILENO); |
32 | bb_fclose_nonstdin(f); | 32 | fclose_if_not_stdin(f); |
33 | if (r >= 0) { | 33 | if (r >= 0) { |
34 | continue; | 34 | continue; |
35 | } | 35 | } |