summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-05-18 20:30:04 +0000
committernate <nate@FreeBSD.org>1996-05-18 20:30:04 +0000
commit44df49b4536a35c7bf54ae9eaa3b4c33942dbf37 (patch)
tree1c45cd09375e360e4bbc63012260d7ced835f1de /sys
parent48c7921229adb774573ec2bf35cde958636a4578 (diff)
downloadFreeBSD-src-44df49b4536a35c7bf54ae9eaa3b4c33942dbf37.zip
FreeBSD-src-44df49b4536a35c7bf54ae9eaa3b4c33942dbf37.tar.gz
Fixed *annoying* error with the weekly files. Do you get these whenver
/etc/weekly is run? Rebuilding locate database: stty: stdin isn't a terminal TERM: Undefined variable. 'su' apparently runs in root's environment before doing a seteuid(), so it reads root's .cshrc. The problem lies in the fact that $prompt is *always* set by the time the command is executed, so you can't protect your interactive commands from the non-interactive commands by the normal: if ($?prompt) then # interactive stuff here endif Set the -f flag (su -fm) which causes it not to read root's .cshrc file, since there should be no reason to do so for these scripts since /etc/crontab sets up all of the necessary environment.
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud