1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

Correct my last fix regarding the "Don't login..." message; plain csh

is too stupid to report anything about ARGV[0], so we will always
complain there, even for the "su -" case.  The fix worked for tcsh
however.
This commit is contained in:
Joerg Wunsch 1995-07-08 11:11:23 +00:00
parent 701a45221e
commit c3b65e4d1f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9442

View File

@ -1,9 +1,14 @@
# $Id: dot.login,v 1.6 1994/09/16 04:20:13 rgrimes Exp $
# $Id: dot.login,v 1.7 1995/06/29 06:30:43 joerg Exp $
#
tset -Q \?$TERM
stty crt erase ^H
umask 2
if ("$0" != "-su") then
echo "Don't login as root, login as yourself an use the 'su' command"
# plain csh is too stupid to get any information on ARGV[0] back
if (! $?tcsh) then
echo "Don't login as root, login as yourself and use the 'su' command"
else
# for tcsh, check if we have been invoked by an "su -"
if ("$0" != "-su") \
echo "Don't login as root, login as yourself and use the 'su' command"
endif