[Pkg-kbd-commit] r174 - in people/barbier/kbd/trunk/debian: .
patches
Denis Barbier
barbier at costa.debian.org
Tue Apr 11 08:15:40 UTC 2006
Author: barbier
Date: 2006-04-11 08:15:39 +0000 (Tue, 11 Apr 2006)
New Revision: 174
Added:
people/barbier/kbd/trunk/debian/patches/getfd.diff
Modified:
people/barbier/kbd/trunk/debian/changelog
people/barbier/kbd/trunk/debian/patches/series
Log:
* debian/patches/getfd.diff: New patch, the getfd function now tries to
open /proc/self/fd/0, so that kbd_mode can be used to query or modify any
TTY by running kbd_mode < /dev/ttyN.
Modified: people/barbier/kbd/trunk/debian/changelog
===================================================================
--- people/barbier/kbd/trunk/debian/changelog 2006-04-10 22:40:33 UTC (rev 173)
+++ people/barbier/kbd/trunk/debian/changelog 2006-04-11 08:15:39 UTC (rev 174)
@@ -2,6 +2,10 @@
* debian/console-screen.kbd.sh: Fix LSB runtime info, as reported in #361051.
+ * debian/patches/getfd.diff: New patch, the getfd function now tries to
+ open /proc/self/fd/0, so that kbd_mode can be used to query or modify any
+ TTY by running kbd_mode < /dev/ttyN.
+
-- Denis Barbier <barbier at debian.org> Tue, 11 Apr 2006 00:37:44 +0200
kbd (1.12-14) unstable; urgency=low
Added: people/barbier/kbd/trunk/debian/patches/getfd.diff
===================================================================
--- people/barbier/kbd/trunk/debian/patches/getfd.diff 2006-04-10 22:40:33 UTC (rev 173)
+++ people/barbier/kbd/trunk/debian/patches/getfd.diff 2006-04-11 08:15:39 UTC (rev 174)
@@ -0,0 +1,15 @@
+Index: trunk/src/getfd.c
+===================================================================
+--- trunk.orig/src/getfd.c
++++ trunk/src/getfd.c
+@@ -59,6 +59,10 @@
+ exit(1);
+ }
+
++ fd = open_a_console("/proc/self/fd/0");
++ if (fd >= 0)
++ return fd;
++
+ fd = open_a_console("/dev/tty");
+ if (fd >= 0)
+ return fd;
Modified: people/barbier/kbd/trunk/debian/patches/series
===================================================================
--- people/barbier/kbd/trunk/debian/patches/series 2006-04-10 22:40:33 UTC (rev 173)
+++ people/barbier/kbd/trunk/debian/patches/series 2006-04-11 08:15:39 UTC (rev 174)
@@ -14,5 +14,6 @@
replace_echo_by_printf.diff
fedora-kbd-1.12-alias.patch
fgconsole.diff
+getfd.diff
braille.diff
thai.diff
More information about the Pkg-kbd-commit
mailing list