Add some casts to quiet gcc warnings on Solaris and remove a

now-useless debug printf.
This commit is contained in:
Todd C. Miller
2017-03-03 11:20:56 -07:00
parent a788144094
commit 00b4732c9d
2 changed files with 5 additions and 7 deletions

View File

@@ -160,7 +160,7 @@ ts_mkdirs(char *path, uid_t owner, mode_t mode, mode_t parent_mode, bool quiet)
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, mode,
"mkdir %s, mode 0%o, uid %d, gid %d", path, (int)mode,
(int)owner, (int)parent_gid);
if (mkdir(path, mode) != 0 && errno != EEXIST) {
if (!quiet)