diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-12-04 09:24:01 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-12-04 09:24:01 +0100 |
commit | bf4d2d862e0b140febabd5897c78f54ef8773a67 (patch) | |
tree | ed7e8e24f28166801c02bb632a152f031d2a3c36 /package/busybox/busybox-1.15.2-split.patch | |
parent | edee1d78ab38f51844df256615146d522ace6425 (diff) | |
download | buildroot-novena-bf4d2d862e0b140febabd5897c78f54ef8773a67.tar.gz buildroot-novena-bf4d2d862e0b140febabd5897c78f54ef8773a67.zip |
busybox: 1.15.2 patches
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.15.2-split.patch')
-rw-r--r-- | package/busybox/busybox-1.15.2-split.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.15.2-split.patch b/package/busybox/busybox-1.15.2-split.patch new file mode 100644 index 000000000..651a320e2 --- /dev/null +++ b/package/busybox/busybox-1.15.2-split.patch @@ -0,0 +1,18 @@ +diff -urpN busybox-1.15.2/coreutils/split.c busybox-1.15.2-split/coreutils/split.c +--- busybox-1.15.2/coreutils/split.c 2009-10-08 02:59:09.000000000 +0200 ++++ busybox-1.15.2-split/coreutils/split.c 2009-11-30 21:09:20.000000000 +0100 +@@ -79,9 +79,13 @@ int split_main(int argc UNUSED_PARAM, ch + + argv += optind; + if (argv[0]) { ++ int fd; + if (argv[1]) + sfx = argv[1]; +- xmove_fd(xopen(argv[0], O_RDONLY), 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; + } |