summaryrefslogtreecommitdiff
path: root/shells/tcsh
diff options
context:
space:
mode:
authortron <tron>1998-09-08 22:36:34 +0000
committertron <tron>1998-09-08 22:36:34 +0000
commitc53c0ab23800592161492d264e9efded1436201b (patch)
tree8cfa9f39b4b1b656045748ff7f2dda4eaf5ab7bf /shells/tcsh
parentf723e50156108dd796291b2b2fe40f64e52884e0 (diff)
downloadpkgsrc-c53c0ab23800592161492d264e9efded1436201b.tar.gz
Create a sane default path if environment variable "PATH" is not set,
patches supplied by Jim Bernard in PR pkg/6127.
Diffstat (limited to 'shells/tcsh')
-rw-r--r--shells/tcsh/patches/patch-ah13
-rw-r--r--shells/tcsh/patches/patch-ai16
2 files changed, 29 insertions, 0 deletions
diff --git a/shells/tcsh/patches/patch-ah b/shells/tcsh/patches/patch-ah
new file mode 100644
index 00000000000..f74b63045f4
--- /dev/null
+++ b/shells/tcsh/patches/patch-ah
@@ -0,0 +1,13 @@
+$NetBSD: patch-ah,v 1.1 1998/09/08 22:36:34 tron Exp $
+
+--- pathnames.h.orig Fri Apr 26 13:18:42 1996
++++ pathnames.h Tue Sep 8 09:36:37 1998
+@@ -37,6 +37,8 @@
+ #ifndef _h_pathnames
+ #define _h_pathnames
+
++#include <paths.h>
++
+ #if defined(CMUCS) && !defined(_PATH_LOCAL)
+ # define _PATH_LOCAL "/usr/cs/bin"
+ #endif /* CMUCS && !_PATH_LOCAL */
diff --git a/shells/tcsh/patches/patch-ai b/shells/tcsh/patches/patch-ai
new file mode 100644
index 00000000000..f847cc66082
--- /dev/null
+++ b/shells/tcsh/patches/patch-ai
@@ -0,0 +1,16 @@
+$NetBSD: patch-ai,v 1.1 1998/09/08 22:36:34 tron Exp $
+
+--- sh.c.orig Sat Oct 5 11:39:07 1996
++++ sh.c Tue Sep 8 09:58:52 1998
+@@ -648,7 +648,11 @@
+ * Re-initialize path if set in environment
+ */
+ if ((tcp = getenv("PATH")) == NULL)
++#ifdef _PATH_DEFPATH
++ importpath(str2short(_PATH_DEFPATH));
++#else /* !_PATH_DEFPATH */
+ setq(STRpath, defaultpath(), &shvhed, VAR_READWRITE);
++#endif /* _PATH_DEFPATH */
+ else
+ /* Importpath() allocates memory for the path, and the
+ * returned pointer from SAVE() was discarded, so