2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

cast mode_t to unsigned int when printing with %o

This commit is contained in:
Todd C. Miller
2017-03-22 08:37:12 -06:00
parent 7f1fa00be9
commit 8d1e994d84
2 changed files with 2 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ ts_mkdirs(char *path, uid_t owner, gid_t group, mode_t mode,
if (ret) {
/* Create final path component. */
sudo_debug_printf(SUDO_DEBUG_DEBUG|SUDO_DEBUG_LINENO,
"mkdir %s, mode 0%o, uid %d, gid %d", path, (int)mode,
"mkdir %s, mode 0%o, uid %d, gid %d", path, (unsigned int)mode,
(int)owner, (int)group);
if (mkdir(path, mode) != 0 && errno != EEXIST) {
if (!quiet)