1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

Add "-f" to all "su" invocations for better behavior when the login

shell is csh.

Submitted by:	ache
This commit is contained in:
John Polstra 2000-03-05 18:40:28 +00:00
parent d33e8b4683
commit 9a07481b47
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=26573
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ cd ${rundir} || exit
arg=${1:-start}
case $arg in
start)
su -m ${user} -c \
su -f -m ${user} -c \
"cvsupd -e -C 100 -l @${facility} -b ${base} -s sup.client" \
>>${out} 2>&1;;

View File

@ -48,17 +48,17 @@ umask 2
ok=yes
if [ ${host_crypto} = ${host} ]; then
echo "Updating from ${host}"
su -m ${cuser} -c \
su -f -m ${cuser} -c \
"${cmd} ${options} -h ${host} ${base}/supfile" || ok=no
else
if [ -d ${base}/prefixes/FreeBSD-crypto.cvs ]; then
echo "Updating from ${host_crypto}"
su -m ${cuser} -c \
su -f -m ${cuser} -c \
"${cmd} ${options} -h ${host_crypto} ${base}/supfile.crypto" ||\
ok=no
fi
echo "Updating from ${host}"
su -m ${cuser} -c \
su -f -m ${cuser} -c \
"${cmd} ${options} -h ${host} ${base}/supfile.non-crypto" || ok=no
fi