summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2004-01-29 00:51:57 +0000
committerMartin Schlemmer <azarah@gentoo.org>2004-01-29 00:51:57 +0000
commit012c617bdb5690254daa77fb99e7cda084275b53 (patch)
tree225c2c6af41c771ae0a43fec0b6a170367c1c92f /sys-apps/kbd/files
parentAdded app-emacs/css-mode ebuild. (diff)
downloadgentoo-2-012c617bdb5690254daa77fb99e7cda084275b53.tar.gz
gentoo-2-012c617bdb5690254daa77fb99e7cda084275b53.tar.bz2
gentoo-2-012c617bdb5690254daa77fb99e7cda084275b53.zip
Fixes a problem where loadkeys matches dvorak the dir, and not the .map file.
Diffstat (limited to 'sys-apps/kbd/files')
-rw-r--r--sys-apps/kbd/files/digest-kbd-1.08-r51
-rw-r--r--sys-apps/kbd/files/kbd-1.08-find-map-fix.patch35
2 files changed, 36 insertions, 0 deletions
diff --git a/sys-apps/kbd/files/digest-kbd-1.08-r5 b/sys-apps/kbd/files/digest-kbd-1.08-r5
new file mode 100644
index 000000000000..9b77d0dd0db3
--- /dev/null
+++ b/sys-apps/kbd/files/digest-kbd-1.08-r5
@@ -0,0 +1 @@
+MD5 924e6a05e52715dc0f96385b35f2f680 kbd-1.08.tar.gz 819924
diff --git a/sys-apps/kbd/files/kbd-1.08-find-map-fix.patch b/sys-apps/kbd/files/kbd-1.08-find-map-fix.patch
new file mode 100644
index 000000000000..bdb06d31246b
--- /dev/null
+++ b/sys-apps/kbd/files/kbd-1.08-find-map-fix.patch
@@ -0,0 +1,35 @@
+--- kbd-1.08/src/findfile.c.orig 2004-01-29 01:47:40.735190832 +0200
++++ kbd-1.08/src/findfile.c 2004-01-29 02:06:51.703217096 +0200
+@@ -167,6 +167,7 @@
+ FILE *fp;
+ int dl, recdepth;
+ struct decompressor *dc;
++ struct stat tstat;
+
+ if (strlen(fnam) >= sizeof(pathname))
+ return NULL;
+@@ -211,6 +212,7 @@
+
+ /* delete trailing slashes; trailing stars denote recursion */
+ dir = xstrdup(*dp);
++loop:
+ dl = strlen(dir);
+ recdepth = 0;
+ while (dl && dir[dl-1] == '*') {
+@@ -224,8 +226,15 @@
+ }
+
+ fp = findfile_in_dir(fnam, dir, recdepth, suffixes);
+- if (fp)
++ if (fp) {
++ if ((lstat(pathname, &tstat) == 0)
++ && (S_ISDIR(tstat.st_mode) != 0)) {
++ dir = xstrdup(pathname);
++ goto loop;
++ }
++
+ return fp;
++ }
+ }
+
+ return NULL;