projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5168bf2
)
Revert "split: use xopen_stdin()"
1_17_2
author
Denys Vlasenko
<dvlasenk@redhat.com>
Thu, 9 Sep 2010 12:57:56 +0000
(14:57 +0200)
committer
Denys Vlasenko
<dvlasenk@redhat.com>
Thu, 9 Sep 2010 12:57:56 +0000
(14:57 +0200)
This reverts commit
5168bf2caac99fbbb499fb660f20e349c9c65c8c
.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
coreutils/split.c
patch
|
blob
|
history
diff --git
a/coreutils/split.c
b/coreutils/split.c
index 7c9c0c1e4580292a1227f583367874b018046330..c2f388501e003142841bb4ecdc5df9c7cf268898 100644
(file)
--- 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;