dovecot-2.0: eaccess_get_error(): Show also directory mode.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 3 17:14:06 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/17d8e1f12901
changeset: 12836:17d8e1f12901
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 03 17:13:59 2011 +0300
description:
eaccess_get_error(): Show also directory mode.

diffstat:

 src/lib/eacces-error.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 12e3e8570d77 -r 17d8e1f12901 src/lib/eacces-error.c
--- a/src/lib/eacces-error.c	Fri Jun 03 17:07:37 2011 +0300
+++ b/src/lib/eacces-error.c	Fri Jun 03 17:13:59 2011 +0300
@@ -181,8 +181,9 @@
 			str_printfa(errmsg, ", conflicting dir uid=%s(%s)",
 				    dec2str(st.st_uid), pw_name);
 		} else {
-			str_printfa(errmsg, ", dir owned by %s:%s",
-				    dec2str(st.st_uid), dec2str(st.st_gid));
+			str_printfa(errmsg, ", dir owned by %s:%s mode=0%o",
+				    dec2str(st.st_uid), dec2str(st.st_gid),
+				    st.st_mode & 0777);
 		}
 	} else {
 		str_append(errmsg, ", euid is dir owner");


More information about the dovecot-cvs mailing list