aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2008-03-11 18:07:17 +0000
committerAndrew Gaffney <agaffney@gentoo.org>2008-03-11 18:07:17 +0000
commite86db7cf2c6400ecb48d01aca7320905d2998c82 (patch)
tree017cd8f3a60e813258684b14303e43b0f3933807 /patches/busybox/1.7.4/1.7.4-openvt.diff
parentRearrange checks so the return value is read correctly. (diff)
downloadgenkernel-e86db7cf2c6400ecb48d01aca7320905d2998c82.tar.gz
genkernel-e86db7cf2c6400ecb48d01aca7320905d2998c82.tar.bz2
genkernel-e86db7cf2c6400ecb48d01aca7320905d2998c82.zip
Add apply_patches() function to automagically apply patches for a given util
Add updated busybox patches for 1.7.4 from robbat2 Change BUSYBOX_VER to 1.7.4 git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@616 67a159dc-881f-0410-a524-ba9dfbe2cb84
Diffstat (limited to 'patches/busybox/1.7.4/1.7.4-openvt.diff')
-rw-r--r--patches/busybox/1.7.4/1.7.4-openvt.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/busybox/1.7.4/1.7.4-openvt.diff b/patches/busybox/1.7.4/1.7.4-openvt.diff
new file mode 100644
index 0000000..aa9e77f
--- /dev/null
+++ b/patches/busybox/1.7.4/1.7.4-openvt.diff
@@ -0,0 +1,20 @@
+Allow a slightly wider range of valid vt numbers. Forward-ported from Gentoo
+Busybox 1.1.3.
+
+The previous spin of this patch on 1.1.3 had a 'wait(NULL);' right before
+return EXIT_SUCCESS. I don't think it's needed anymore, so I left it out.
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -Nuar --exclude '*.orig' busybox-1.7.4/console-tools/openvt.c busybox-1.7.4+gentoo/console-tools/openvt.c
+--- busybox-1.7.4/console-tools/openvt.c 2007-09-03 04:48:35.000000000 -0700
++++ busybox-1.7.4+gentoo/console-tools/openvt.c 2008-03-10 10:00:55.000000000 -0700
+@@ -21,7 +21,7 @@
+ bb_show_usage();
+
+ /* check for illegal vt number: < 1 or > 63 */
+- sprintf(vtname, VC_FORMAT, (int)xatou_range(argv[1], 1, 63));
++ sprintf(vtname, VC_FORMAT, (int)xatou_range(argv[1], 0, 63));
+
+ bb_daemonize_or_rexec(DAEMON_CLOSE_EXTRA_FDS, argv);
+ /* grab new one */