Mercurial > dovecot > core-2.2
diff src/lib/eacces-error.c @ 13151:8aeff3210f8d
eacces_error_get*(): Handle non-int struct stat.st_mode properly.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 03 Aug 2011 20:29:16 +0300 |
parents | d339aeb782ed |
children | b6e5cf112b3e |
line wrap: on
line diff
--- a/src/lib/eacces-error.c Wed Aug 03 19:06:37 2011 +0300 +++ b/src/lib/eacces-error.c Wed Aug 03 20:29:16 2011 +0300 @@ -192,7 +192,7 @@ } else { str_printfa(errmsg, ", dir owned by %s:%s mode=0%o", dec2str(st.st_uid), dec2str(st.st_gid), - st.st_mode & 0777); + (unsigned int)(st.st_mode & 0777)); } } else if (missing_mode != 0 && (((st.st_mode & 0700) >> 6) & missing_mode) == 0) {