mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 18:08:23 +00:00
Use ROOT_UID not 0.
This commit is contained in:
parent
7960bde2db
commit
6c28af1556
@ -709,8 +709,8 @@ get_authpw(void)
|
||||
struct passwd *pw;
|
||||
|
||||
if (def_rootpw) {
|
||||
if ((pw = sudo_getpwuid(0)) == NULL)
|
||||
log_error(0, _("unknown uid: 0"));
|
||||
if ((pw = sudo_getpwuid(ROOT_UID)) == NULL)
|
||||
log_error(0, _("unknown uid: %u"), ROOT_UID);
|
||||
} else if (def_runaspw) {
|
||||
if ((pw = sudo_getpwnam(def_runas_default)) == NULL)
|
||||
log_error(0, _("unknown user: %s"), def_runas_default);
|
||||
|
Loading…
x
Reference in New Issue
Block a user