diff options
author | Denys Vlasenko | 2010-09-09 14:57:56 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-09-09 14:57:56 +0200 |
commit | 5e891f30d376bb83d391790173b1c189f4bb22cd (patch) | |
tree | 5ee9110f0cb3ddd01f2ca6a5d7da87ee4a910443 /coreutils | |
parent | 5168bf2caac99fbbb499fb660f20e349c9c65c8c (diff) | |
download | busybox-1_17_2.zip busybox-1_17_2.tar.gz |
Revert "split: use xopen_stdin()"1_17_2
This reverts commit 5168bf2caac99fbbb499fb660f20e349c9c65c8c.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/split.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/coreutils/split.c b/coreutils/split.c index 7c9c0c1..c2f3885 100644 --- a/coreutils/split.c +++ b/coreutils/split.c @@ -82,7 +82,9 @@ int split_main(int argc UNUSED_PARAM, char **argv) int fd; if (argv[1]) sfx = argv[1]; - fd = xopen_stdin(argv[0]); + fd = open_or_warn_stdin(argv[0]); + if (fd == -1) + return EXIT_FAILURE; xmove_fd(fd, STDIN_FILENO); } else { argv[0] = (char *) bb_msg_standard_input; |