Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/split.c')
-rw-r--r--coreutils/split.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/split.c b/coreutils/split.c
index e401bd388..db5a1727a 100644
--- a/coreutils/split.c
+++ b/coreutils/split.c
@@ -82,9 +82,7 @@ int split_main(int argc UNUSED_PARAM, char **argv)
int fd;
if (argv[1])
sfx = argv[1];
- fd = open_or_warn_stdin(argv[0]);
- if (fd == -1)
- return EXIT_FAILURE;
+ fd = xopen_stdin(argv[0]);
xmove_fd(fd, STDIN_FILENO);
} else {
argv[0] = (char *) bb_msg_standard_input;