dovecot-1.2: file_dotlock_open_mode(): Log uid/gid in fchown() f...

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 10 21:46:32 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/c22b7db8c173
changeset: 8184:c22b7db8c173
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 10 21:46:23 2008 +0300
description:
file_dotlock_open_mode(): Log uid/gid in fchown() failures.

diffstat:

1 file changed, 3 insertions(+), 2 deletions(-)
src/lib/file-dotlock.c |    5 +++--

diffs (15 lines):

diff -r da6fd72f8103 -r c22b7db8c173 src/lib/file-dotlock.c
--- a/src/lib/file-dotlock.c	Tue Sep 09 19:40:30 2008 +0300
+++ b/src/lib/file-dotlock.c	Wed Sep 10 21:46:23 2008 +0300
@@ -760,8 +760,9 @@ int file_dotlock_open_mode(const struct 
 
 	if (fd != -1) {
 		if (fchown(fd, uid, gid) < 0) {
-			i_error("fchown(%s) failed: %m",
-				file_dotlock_get_lock_path(dotlock));
+			i_error("fchown(%s, %ld, %ld) failed: %m",
+				file_dotlock_get_lock_path(dotlock),
+				(long)uid, (long)gid);
 			file_dotlock_delete(&dotlock);
 			return -1;
 		}


More information about the dovecot-cvs mailing list