mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Fix compiler warning on systems where mode_t is not unsigned int,
such as 32-bit Solaris.
This commit is contained in:
parent
c9d4e1084c
commit
ea514dc391
@ -620,7 +620,7 @@ install_sudoers(struct sudoersfile *sp, bool oldperms)
|
||||
}
|
||||
if (chmod(sp->tpath, sudoers_mode) != 0) {
|
||||
sudo_warn(U_("unable to change mode of %s to 0%o"), sp->tpath,
|
||||
sudoers_mode);
|
||||
(unsigned int)sudoers_mode);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
@ -818,7 +818,7 @@ check_owner(const char *path, bool quiet)
|
||||
ok = false;
|
||||
if (!quiet) {
|
||||
fprintf(stderr, _("%s: bad permissions, should be mode 0%o\n"),
|
||||
path, sudoers_mode);
|
||||
path, (unsigned int)sudoers_mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user