oops - fix not set path for csh shell caused by 2.8.16 update

This commit is contained in:
Ondrej Vasik 2010-03-26 15:38:46 +00:00
parent cdc5685c3b
commit b80d7a0605
2 changed files with 23 additions and 1 deletions

20
setup-cshpath.patch Normal file
View File

@ -0,0 +1,20 @@
diff -urNp setup-2.8.16-orig/csh.login setup-2.8.16/csh.login
--- setup-2.8.16-orig/csh.login 2010-03-26 13:10:06.000000000 +0100
+++ setup-2.8.16/csh.login 2010-03-26 16:36:11.000000000 +0100
@@ -2,12 +2,10 @@
# System wide environment and startup programs, for login setup
-if ($?PATH) then
- if ( $uid == 0 ) then
- setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin"
- else
- setenv PATH "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"
- endif
+if ( $uid == 0 ) then
+ setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin"
+else
+ setenv PATH "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"
endif
setenv HOSTNAME `/bin/hostname`

View File

@ -1,11 +1,12 @@
Summary: A set of system configuration and setup files
Name: setup
Version: 2.8.16
Release: 1%{?dist}
Release: 2%{?dist}
License: Public Domain
Group: System Environment/Base
URL: https://fedorahosted.org/setup/
Source0: https://fedorahosted.org/releases/s/e/%{name}/%{name}-%{version}.tar.bz2
Patch1: setup-cshpath.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: bash tcsh perl
@ -17,6 +18,7 @@ setup files, such as passwd, group, and profile.
%prep
%setup -q
%patch1 -p1
./shadowconvert.sh
%build