commit | 7ff6836db383d74627b7e7a1bc222b4a80d3ce55 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Mon Aug 23 03:06:46 2010 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Mon Aug 23 03:06:46 2010 +0200 |
tree | f9d506c3476a0d0c4122bf96db7a3e9aa441f7cf | |
parent | 3d8b96d58d74d775e34de8d19a03db5380eb8f2c [diff] [blame] |
split: use xopen_stdin() function old new delta split_main 558 543 -15 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/coreutils/split.c b/coreutils/split.c index e401bd3..db5a172 100644 --- a/coreutils/split.c +++ b/coreutils/split.c
@@ -82,9 +82,7 @@ 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;