diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2024-11-20 13:14:43 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2024-12-12 16:03:34 +0000 |
| commit | 35a6770dde027d85e6b9a9b6fd9f7d254a320ef3 (patch) | |
| tree | e5bb5721ab034aa6a534fa4262c47d0fdfe14250 | |
| parent | c062d3ec6031372c2591d3a0eac42de25efdc165 (diff) | |
sh(1): -l is only valid in cli option not as set -l
(cherry picked from commit 0df81552d74d2c188a9323ffe18f6ebe799b86f9)
| -rw-r--r-- | bin/sh/options.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/options.c b/bin/sh/options.c index 43a8ee47411e..383f9523975d 100644 --- a/bin/sh/options.c +++ b/bin/sh/options.c @@ -200,7 +200,7 @@ options(int cmdline) if (q == NULL || minusc != NULL) error("Bad -c option"); minusc = q; - } else if (c == 'l') { + } else if (c == 'l' && cmdline) { login = 1; } else if (c == 'o') { minus_o(*argptr, val); |
