dovecot-1.2: deliver: We no longer have umask setting, don't try...

dovecot at dovecot.org dovecot at dovecot.org
Tue Apr 7 00:01:38 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/d75ecf89760d
changeset: 8921:d75ecf89760d
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 06 17:01:31 2009 -0400
description:
deliver: We no longer have umask setting, don't try to use it.

diffstat:

1 file changed, 1 insertion(+), 5 deletions(-)
src/deliver/deliver.c |    6 +-----

diffs (16 lines):

diff -r 7bfbbfd2c32a -r d75ecf89760d src/deliver/deliver.c
--- a/src/deliver/deliver.c	Mon Apr 06 16:17:58 2009 -0400
+++ b/src/deliver/deliver.c	Mon Apr 06 17:01:31 2009 -0400
@@ -1065,11 +1065,7 @@ int main(int argc, char *argv[])
 	}
 
 	env_put(t_strconcat("USER=", user, NULL));
-
-	value = getenv("UMASK");
-	if (value == NULL || sscanf(value, "%i", &i) != 1 || i < 0)
-		i = 0077;
-	(void)umask(i);
+	(void)umask(0077);
 
 	deliver_set->hostname = getenv("HOSTNAME");
 	if (deliver_set->hostname == NULL)


More information about the dovecot-cvs mailing list