dovecot-2.2: auth: Don't assert-crash in auth-token writing if p...

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 31 13:11:18 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/6b45225ab1d5
changeset: 15361:6b45225ab1d5
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 31 13:11:11 2012 +0200
description:
auth: Don't assert-crash in auth-token writing if process isn't running as root.

diffstat:

 src/auth/auth-token.c |  2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diffs (12 lines):

diff -r d29a1bf4aba5 -r 6b45225ab1d5 src/auth/auth-token.c
--- a/src/auth/auth-token.c	Mon Oct 29 23:03:59 2012 +0200
+++ b/src/auth/auth-token.c	Wed Oct 31 13:11:11 2012 +0200
@@ -105,8 +105,6 @@
 	mode_t old_mask;
 	int fd, ret;
 
-	i_assert(getuid() == 0);
-
 	temp_path = t_strconcat(path, ".tmp", NULL);
 
 	old_mask = umask(0);


More information about the dovecot-cvs mailing list