2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-03 07:45:47 +00:00

Fix some printf format mismatches on error.

This commit is contained in:
Todd C. Miller
2005-02-12 23:48:46 +00:00
parent cc84c41fbe
commit b7068a4138

6
sudo.c
View File

@@ -963,10 +963,10 @@ open_sudoers(sudoers, keepopen)
(statbuf.st_mode & 07777), SUDOERS_MODE); (statbuf.st_mode & 07777), SUDOERS_MODE);
else if (statbuf.st_uid != SUDOERS_UID) else if (statbuf.st_uid != SUDOERS_UID)
log_error(0, "%s is owned by uid %lu, should be %lu", sudoers, log_error(0, "%s is owned by uid %lu, should be %lu", sudoers,
(unsigned long) statbuf.st_uid, SUDOERS_UID); (unsigned long) statbuf.st_uid, (unsigned long) SUDOERS_UID);
else if (statbuf.st_gid != SUDOERS_GID) else if (statbuf.st_gid != SUDOERS_GID)
log_error(0, "%s is owned by gid %lu, should be %lu", sudoers, log_error(0, "%s is owned by gid %lu, should be %lu", sudoers,
(unsigned long) statbuf.st_gid, SUDOERS_GID); (unsigned long) statbuf.st_gid, (unsigned long) SUDOERS_GID);
else { else {
/* Solaris sometimes returns EAGAIN so try 10 times */ /* Solaris sometimes returns EAGAIN so try 10 times */
for (i = 0; i < 10 ; i++) { for (i = 0; i < 10 ; i++) {
@@ -1142,7 +1142,7 @@ get_authpw()
} else if (def_targetpw) { } else if (def_targetpw) {
if (runas_pw->pw_name == NULL) if (runas_pw->pw_name == NULL)
log_error(NO_MAIL|MSG_ONLY, "no passwd entry for %lu!", log_error(NO_MAIL|MSG_ONLY, "no passwd entry for %lu!",
runas_pw->pw_uid); (unsigned long) runas_pw->pw_uid);
pw = runas_pw; pw = runas_pw;
} else } else
pw = sudo_user.pw; pw = sudo_user.pw;