Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc The check_rootdotfiles section mucks with the PATH setti...



details:   https://anonhg.NetBSD.org/src/rev/32961635ae26
branches:  trunk
changeset: 532593:32961635ae26
user:      atatat <atatat%NetBSD.org@localhost>
date:      Mon Jun 10 16:04:48 2002 +0000

description:
The check_rootdotfiles section mucks with the PATH setting, but
never puts it back properly.  As such, jobs run later that expect
there to be a path will lose badly (eg, run lintpkgsrc -i from
security.local).  Let's just re-export the PATH.

diffstat:

 etc/security |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 9c8cf5616290 -r 32961635ae26 etc/security
--- a/etc/security      Mon Jun 10 14:52:21 2002 +0000
+++ b/etc/security      Mon Jun 10 16:04:48 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: security,v 1.75 2002/05/21 13:50:46 lukem Exp $
+#      $NetBSD: security,v 1.76 2002/06/10 16:04:48 atatat Exp $
 #      from: @(#)security      8.1 (Berkeley) 6/9/93
 #
 
@@ -314,7 +314,7 @@
                                source $i
                                /bin/ls -ldgT \$path > $TMP1
 end-of-csh
-                       PATH=$SAVE_PATH
+                       export PATH=$SAVE_PATH
                        awk '{
                                if ($10 ~ /^\.$/) {
                                        print "\tThe root path includes .";
@@ -358,7 +358,7 @@
                                    's/^:/.:/;s/:$/:./;s/::/:.:/g;s/:/ /g'\`
                                /bin/ls -ldgT \$list > $TMP1
 end-of-sh
-                       PATH=$SAVE_PATH
+                       export PATH=$SAVE_PATH
                        awk '{
                                if ($10 ~ /^\.$/) {
                                        print "\tThe root path includes .";



Home | Main Index | Thread Index | Old Index