git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3464074
)
lib/util: Cast mode_t result to unsigned int for GNU/Solaris build
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 14 Mar 2013 09:14:19 +0000
(20:14 +1100)
committer
Jeremy 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
patch
|
blob
|
history
diff --git
a/lib/util/util.c
b/lib/util/util.c
index 464fc62e1fb20a7d176130edc8d205ec097c9349..7962c1e2ea8a4df3fcafd521b9dcf32722f41cfc 100644
(file)
--- a/
lib/util/util.c
+++ b/
lib/util/util.c
@@
-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;
}