aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/su
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-04-06 06:06:47 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-04-06 06:06:47 +0000
commitce0436e7a6bffd2916038ccdbdbe1e24f3a67888 (patch)
treedfd8addc97d90943f007c3eb12f1b7384fca6854 /usr.bin/su
parent0264a8a9c62201065139b06dea50fe018829ffef (diff)
downloadsrc-ce0436e7a6bffd2916038ccdbdbe1e24f3a67888.tar.gz
src-ce0436e7a6bffd2916038ccdbdbe1e24f3a67888.zip
Notes
Diffstat (limited to 'usr.bin/su')
-rw-r--r--usr.bin/su/su.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/su/su.c b/usr.bin/su/su.c
index 95d54eccdcd2..6eef9eecae6e 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 */