File git-09-919d7d4426ea868ffa10a18b87a6027e7555bca3.patch of Package aaa_base.openSUSE_Leap_42.2_Update

commit 919d7d4426ea868ffa10a18b87a6027e7555bca3
Author: super7ramp <antoine.belvire@laposte.net>
Date:   Thu Dec 11 00:09:16 2014 -0500

    Restore CWD_IN_ROOT_PATH and CWD_IN_ROOT_PATH

diff --git a/files/etc/profile.d/profile.csh b/files/etc/profile.d/profile.csh
index a485f5e..964f93a 100644
--- a/files/etc/profile.d/profile.csh
+++ b/files/etc/profile.d/profile.csh
@@ -28,6 +28,16 @@ foreach line ( "`/bin/grep -vh '^#' $sysconf`" )
     set arr=( $val )
     eval set val="${arr[2-]}"
     switch (${line:q})
+    case CWD_IN_ROOT_PATH=*:
+	if ( ${line:q} !~ *=*yes* ) continue
+	if ( "$path[*]" =~ *.* ) continue
+	if ( $uid < 100 ) set -l path=( $path . )
+	breaksw
+    case CWD_IN_USER_PATH=*:
+	if ( ${line:q} !~ *=*yes* ) continue
+	if ( "$path[*]" =~ *.* ) continue
+	if ( $uid >= 100 ) set -l path=( $path . )
+	breaksw
     case FROM_HEADER=*:
 	setenv FROM_HEADER "${val:q}"
 	breaksw
diff --git a/files/etc/profile.d/profile.sh b/files/etc/profile.d/profile.sh
index a1bce40..cc4aa6c 100644
--- a/files/etc/profile.d/profile.sh
+++ b/files/etc/profile.d/profile.sh
@@ -23,6 +23,14 @@ do
         esac
 	eval val=${line#*=}
 	case "$line" in
+	CWD_IN_ROOT_PATH=*)
+      test "$val" = "yes" || continue
+      test $UID -lt 100 && PATH=$PATH:.
+      ;;
+	CWD_IN_USER_PATH=*)
+      test "$val" = "yes" || continue
+      test $UID -ge 100 && PATH=$PATH:.
+      ;;
 	FROM_HEADER=*)
 	    FROM_HEADER="${val}"
 	    export FROM_HEADER
diff --git a/files/usr/bin/mkinfodir b/files/usr/bin/mkinfodir
index 16573db..d409055 100755
--- a/files/usr/bin/mkinfodir
+++ b/files/usr/bin/mkinfodir
@@ -340,6 +340,7 @@ File: dir	Node: Top	This is the top of the INFO tree
     Typing "d" returns here,       typing "?" lists all INFO commands,
     typing "q" exits,     typing "h" gives a  primer for first-timers,
     pressing 2nd button on a highlighted word follows cross-reference.
+    
  ---- EDIT WITH CARE: ----
  ---- Only descriptive text for otherwise empty topics will survive ----
 
openSUSE Build Service is sponsored by