mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
-u flag was being ignored
This commit is contained in:
parent
3fc0ab7680
commit
014bd22934
3
sudo.c
3
sudo.c
@ -418,7 +418,8 @@ init_vars(sudo_mode)
|
||||
#endif /* SUDO_UMASK */
|
||||
|
||||
/* Default values for runas and cmnd, overridden later. */
|
||||
user_runas = RUNAS_DEFAULT;
|
||||
if (user_runas == NULL)
|
||||
user_runas = RUNAS_DEFAULT;
|
||||
if (user_cmnd == NULL)
|
||||
user_cmnd = NewArgv[0];
|
||||
(void) strcpy(user_cwd, "unknown");
|
||||
|
Loading…
x
Reference in New Issue
Block a user