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