summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.9.1-init.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-03-21 10:14:15 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-03-21 10:14:15 +0000
commit7c54beb870cc7fb50c8a77689dab589d7cb90fb8 (patch)
tree4f44d1ab546d5e5fde108ba69a3a60f4e057e3b5 /package/busybox/busybox-1.9.1-init.patch
parent374f8383b979761ff6eb3de9e6302efb21439a64 (diff)
busybox: bump version (1.9.2)
Diffstat (limited to 'package/busybox/busybox-1.9.1-init.patch')
-rw-r--r--package/busybox/busybox-1.9.1-init.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/package/busybox/busybox-1.9.1-init.patch b/package/busybox/busybox-1.9.1-init.patch
deleted file mode 100644
index be86cbe2f..000000000
--- a/package/busybox/busybox-1.9.1-init.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- busybox-1.9.1/init/init.c Tue Feb 12 17:03:12 2008
-+++ busybox-1.9.1-init/init/init.c Mon Mar 17 14:19:41 2008
-@@ -225,8 +225,22 @@
- }
- messageD(L_LOG, "console='%s'", s);
- } else {
-- /* Make sure fd 0,1,2 are not closed */
-- bb_sanitize_stdio();
-+ /* Make sure fd 0,1,2 are not closed
-+ * (so that they won't be used by future opens) */
-+
-+ /* bb_sanitize_stdio(); - WRONG.
-+ * Fail if "/dev/null" doesnt exist, and for init
-+ * this is a real possibility! Open code it instead. */
-+
-+ int fd = open(bb_dev_null, O_RDWR);
-+ if (fd < 0) {
-+ /* Give me _ANY_ open descriptor! */
-+ fd = xopen("/", O_RDONLY); /* we don't believe this can fail */
-+ }
-+ while ((unsigned)fd < 2)
-+ fd = dup(fd);
-+ if (fd > 2)
-+ close (fd);
- }
-
- s = getenv("TERM");