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 */