mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 20:12:44 +00:00
sh(1): -l is only valid in cli option not as set -l
This commit is contained in:
parent
bbe2a1da2d
commit
0df81552d7
@ -194,7 +194,7 @@ options(int cmdline)
|
|||||||
if (q == NULL || minusc != NULL)
|
if (q == NULL || minusc != NULL)
|
||||||
error("Bad -c option");
|
error("Bad -c option");
|
||||||
minusc = q;
|
minusc = q;
|
||||||
} else if (c == 'l') {
|
} else if (c == 'l' && cmdline) {
|
||||||
login = 1;
|
login = 1;
|
||||||
} else if (c == 'o') {
|
} else if (c == 'o') {
|
||||||
minus_o(*argptr, val);
|
minus_o(*argptr, val);
|
||||||
|
Loading…
Reference in New Issue
Block a user