lib/util: Cast mode_t result to unsigned int for GNU/Solaris build
authorAndrew Bartlett <abartlet@samba.org>
Thu, 14 Mar 2013 09:14:19 +0000 (20:14 +1100)
committerJeremy Allison <jra@samba.org>
Fri, 15 Mar 2013 17:38:32 +0000 (10:38 -0700)
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/util.c

index 464fc62e1fb20a7d176130edc8d205ec097c9349..7962c1e2ea8a4df3fcafd521b9dcf32722f41cfc 100644 (file)
@@ -235,7 +235,7 @@ _PUBLIC_ bool directory_create_or_exist_strict(const char *dname,
        if ((st.st_mode & 0777) != dir_perms) {
                DEBUG(0, ("invalid permissions on directory "
                          "'%s': has 0%o should be 0%o\n", dname,
-                         (st.st_mode & 0777), dir_perms));
+                         (unsigned int)(st.st_mode & 0777), (unsigned int)dir_perms));
                return false;
        }