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:
dc04439
)
split: use xopen_stdin()
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 23 Aug 2010 01:03:09 +0000
(
03:03
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 23 Aug 2010 01:03:09 +0000
(
03:03
+0200)
function old new delta
split_main 558 543 -15
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/split.c
patch
|
blob
|
history
diff --git
a/coreutils/split.c
b/coreutils/split.c
index c2f388501e003142841bb4ecdc5df9c7cf268898..7c9c0c1e4580292a1227f583367874b018046330 100644
(file)
--- 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;