summaryrefslogtreecommitdiff
path: root/app-shells/tcsh/files/tcsh-6.23.02-dircolors.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/tcsh/files/tcsh-6.23.02-dircolors.patch')
-rw-r--r--app-shells/tcsh/files/tcsh-6.23.02-dircolors.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/app-shells/tcsh/files/tcsh-6.23.02-dircolors.patch b/app-shells/tcsh/files/tcsh-6.23.02-dircolors.patch
new file mode 100644
index 000000000000..2fb21476fd29
--- /dev/null
+++ b/app-shells/tcsh/files/tcsh-6.23.02-dircolors.patch
@@ -0,0 +1,27 @@
+Based on original Debian patch, updated from 6.14 to 6.20 and 6.23
+
+silently ignore bad colour variables, for defaults have unsupported ones
+
+https://bugs.gentoo.org/120792
+
+--- a/tw.color.c
++++ b/tw.color.c
+@@ -381,16 +381,14 @@
+ if ((Char)variables[i].variable[0] == (v[0] & CHAR) &&
+ (Char)variables[i].variable[1] == (v[1] & CHAR))
+ break;
++ v += 3;
+ if (i < nvariables) {
+- v += 3;
+ getstring(&c, &v, &variables[i].color, ':');
+ if (i == VSym)
+ color_as_referent = strcasecmp(
+ variables[VSym].color.s, "target") == 0;
+- continue;
+ }
+- else
+- stderror(ERR_BADCOLORVAR, v[0], v[1]);
++ continue;
+ }
+ break;
+ }