From 9a07481b47d6d8bfa4bf4adde9b81c02e546efbb Mon Sep 17 00:00:00 2001 From: John Polstra Date: Sun, 5 Mar 2000 18:40:28 +0000 Subject: Add "-f" to all "su" invocations for better behavior when the login shell is csh. Submitted by: ache --- net/cvsup-mirror/files/cvsupd.sh | 2 +- net/cvsup-mirror/files/update.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'net/cvsup-mirror') diff --git a/net/cvsup-mirror/files/cvsupd.sh b/net/cvsup-mirror/files/cvsupd.sh index 9a78f9a66f66..f470dd3c6070 100644 --- a/net/cvsup-mirror/files/cvsupd.sh +++ b/net/cvsup-mirror/files/cvsupd.sh @@ -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;; diff --git a/net/cvsup-mirror/files/update.sh b/net/cvsup-mirror/files/update.sh index f0888ecbba07..1f0c4dbe6880 100644 --- a/net/cvsup-mirror/files/update.sh +++ b/net/cvsup-mirror/files/update.sh @@ -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 -- cgit v1.2.3