summaryrefslogtreecommitdiff
path: root/source/a/tcsh
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/tcsh')
-rw-r--r--source/a/tcsh/tcsh-6.18.01-crypt.diff11
-rwxr-xr-xsource/a/tcsh/tcsh.SlackBuild6
2 files changed, 15 insertions, 2 deletions
diff --git a/source/a/tcsh/tcsh-6.18.01-crypt.diff b/source/a/tcsh/tcsh-6.18.01-crypt.diff
new file mode 100644
index 00000000..db7306e2
--- /dev/null
+++ b/source/a/tcsh/tcsh-6.18.01-crypt.diff
@@ -0,0 +1,11 @@
+--- tc.func.c.orig 2013-05-16
++++ tc.func.c 2013-05-16
+@@ -733,7 +733,7 @@ auto_lock(void)
+ pp = xgetpass("Password:");
+
+ crpp = XCRYPT(pw, pp, srpp);
+- if ((strcmp(crpp, srpp) == 0)
++ if ((crpp && (strcmp(crpp, srpp) == 0))
+ #ifdef AFS
+ || (ka_UserAuthenticateGeneral(KA_USERAUTH_VERSION,
+ afsname, /* name */
diff --git a/source/a/tcsh/tcsh.SlackBuild b/source/a/tcsh/tcsh.SlackBuild
index c8134a80..44e398c0 100755
--- a/source/a/tcsh/tcsh.SlackBuild
+++ b/source/a/tcsh/tcsh.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2008, 2009, 2010, 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2012, 2013 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,7 +22,7 @@
VERSION=6.18.01
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -53,6 +53,8 @@ rm -rf tcsh-$VERSION
tar xvf $CWD/tcsh-$VERSION.tar.?z* || exit 1
cd tcsh-$VERSION
+zcat $CWD/tcsh-6.18.01-crypt.diff.gz | patch -p0 --verbose || exit 1
+
# The LS_COLORS variable shared by tcsh has new options in recent
# versions of coreutils that cause tcsh to exit, so disable the
# built-in color ls: