diff options
author | nate <nate@FreeBSD.org> | 1996-05-18 20:30:04 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1996-05-18 20:30:04 +0000 |
commit | 44df49b4536a35c7bf54ae9eaa3b4c33942dbf37 (patch) | |
tree | 1c45cd09375e360e4bbc63012260d7ced835f1de /sys/sys | |
parent | 48c7921229adb774573ec2bf35cde958636a4578 (diff) | |
download | FreeBSD-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/sys')
0 files changed, 0 insertions, 0 deletions