version 1.80, 2020/07/08 10:35:06 |
version 1.81, 2020/07/08 15:36:35 |
|
|
err(1, "pledge"); |
err(1, "pledge"); |
|
|
np = *argv ? argv : argv - 1; |
np = *argv ? argv : argv - 1; |
|
|
if (iscsh == YES) { |
if (iscsh == YES) { |
if (fastlogin) |
if (fastlogin) |
*np-- = "-f"; |
*np-- = "-f"; |
if (asme) |
if (asme) |
*np-- = "-m"; |
*np-- = "-m"; |
} |
|
|
|
if (asthem) { |
if (asthem) |
if (iscsh == YES || !fastlogin) { |
|
avshellbuf[0] = '-'; |
avshellbuf[0] = '-'; |
strlcpy(avshellbuf+1, avshell, sizeof(avshellbuf) - 1); |
else { |
avshell = avshellbuf; |
/* csh strips the first character... */ |
|
avshellbuf[0] = '_'; |
} |
} |
} else if (iscsh == YES) { |
strlcpy(avshellbuf+1, avshell, sizeof(avshellbuf) - 1); |
/* csh strips the first character... */ |
avshell = avshellbuf; |
avshellbuf[0] = '_'; |
} else if (asthem && !fastlogin) { |
|
avshellbuf[0] = '-'; |
strlcpy(avshellbuf+1, avshell, sizeof(avshellbuf) - 1); |
strlcpy(avshellbuf+1, avshell, sizeof(avshellbuf) - 1); |
avshell = avshellbuf; |
avshell = avshellbuf; |
} |
} |