Skip to content

Commit 0a7814b

Browse files
authored
Merge commit from fork
Improve argument handling when launching login
2 parents 73f72b3 + 6528628 commit 0a7814b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/getty.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ static int exec_login(char *name)
312312
struct stat st;
313313

314314
if (passenv)
315-
execl(_PATH_LOGIN, _PATH_LOGIN, "-p", name, NULL);
315+
execl(_PATH_LOGIN, _PATH_LOGIN, "-p", "--", name, NULL);
316316
else
317-
execl(_PATH_LOGIN, _PATH_LOGIN, name, NULL);
317+
execl(_PATH_LOGIN, _PATH_LOGIN, "--", name, NULL);
318318

319319
/*
320320
* Failed to exec login, should not happen on normal systems.

0 commit comments

Comments
 (0)