diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1995-07-08 11:11:23 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1995-07-08 11:11:23 +0000 |
| commit | c3b65e4d1f1098fff70cae12b19795e614cef404 (patch) | |
| tree | e5244017f54f9efa716d98efb7786a2b0b38ec73 /etc/root | |
| parent | 701a45221e993dafd18728c06e7c462ffb634969 (diff) | |
Notes
Diffstat (limited to 'etc/root')
| -rw-r--r-- | etc/root/dot.login | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/etc/root/dot.login b/etc/root/dot.login index 0f8566734bf1..596604454b0a 100644 --- a/etc/root/dot.login +++ b/etc/root/dot.login @@ -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 |
