diff options
author | jkh <jkh@FreeBSD.org> | 1995-04-06 06:06:47 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-04-06 06:06:47 +0000 |
commit | 02d736ad6e7ea0db7d46f8851ab0c8226e3fa5b6 (patch) | |
tree | dfd8addc97d90943f007c3eb12f1b7384fca6854 /usr.bin/su | |
parent | 86e424aef2ac9b57835299e0dcfbb41b1b8d9e3f (diff) | |
download | FreeBSD-src-02d736ad6e7ea0db7d46f8851ab0c8226e3fa5b6.zip FreeBSD-src-02d736ad6e7ea0db7d46f8851ab0c8226e3fa5b6.tar.gz |
It has always bugged me that ps and w did not display su with tcsh
properly. I know, tcsh is not a "Real Shell".
jc p2 :0.0 Tue04PM - -u (tcsh)
^^^
7173 p2 S+ 0:01.33 -u (tcsh)
^^^
Submitted by: John Capo <jc@irbs.com>
Diffstat (limited to 'usr.bin/su')
-rw-r--r-- | usr.bin/su/su.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c index 95d54ec..6eef9ee 100644 --- a/usr.bin/su/su.c +++ b/usr.bin/su/su.c @@ -205,7 +205,8 @@ main(argc, argv) ++p; else p = shell; - iscsh = strcmp(p, "csh") ? NO : YES; + if ((iscsh = strcmp(p, "csh") ? NO : YES) == NO) + iscsh = strcmp(p, "tcsh") ? NO : YES; } /* set permissions */ |