=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/su/su.c,v retrieving revision 1.79 retrieving revision 1.80 diff -c -r1.79 -r1.80 *** src/usr.bin/su/su.c 2019/12/07 19:23:21 1.79 --- src/usr.bin/su/su.c 2020/07/08 10:35:06 1.80 *************** *** 1,4 **** ! /* $OpenBSD: su.c,v 1.79 2019/12/07 19:23:21 millert Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: su.c,v 1.80 2020/07/08 10:35:06 jca Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. *************** *** 319,327 **** } if (asthem) { ! avshellbuf[0] = '-'; ! strlcpy(avshellbuf+1, avshell, sizeof(avshellbuf) - 1); ! avshell = avshellbuf; } else if (iscsh == YES) { /* csh strips the first character... */ avshellbuf[0] = '_'; --- 319,329 ---- } if (asthem) { ! if (iscsh == YES || !fastlogin) { ! avshellbuf[0] = '-'; ! strlcpy(avshellbuf+1, avshell, sizeof(avshellbuf) - 1); ! avshell = avshellbuf; ! } } else if (iscsh == YES) { /* csh strips the first character... */ avshellbuf[0] = '_';