Revert "split: use xopen_stdin()"

This reverts commit 5168bf2caa.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
1_17_stable 1_17_2
Denys Vlasenko 2010-09-09 14:57:56 +02:00
parent 5168bf2caa
commit 5e891f30d3
1 changed files with 3 additions and 1 deletions

View File

@ -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;