mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
Merge commit from fork
Improve argument handling when launching login
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -312,9 +312,9 @@ static int exec_login(char *name)
|
|||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
if (passenv)
|
if (passenv)
|
||||||
execl(_PATH_LOGIN, _PATH_LOGIN, "-p", name, NULL);
|
execl(_PATH_LOGIN, _PATH_LOGIN, "-p", "--", name, NULL);
|
||||||
else
|
else
|
||||||
execl(_PATH_LOGIN, _PATH_LOGIN, name, NULL);
|
execl(_PATH_LOGIN, _PATH_LOGIN, "--", name, NULL);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Failed to exec login, should not happen on normal systems.
|
* Failed to exec login, should not happen on normal systems.
|
||||||
|
|||||||
Reference in new issue
Block a user