[dovecot-cvs] dovecot/src/lib env-util.c,1.10,1.11

cras at dovecot.org cras at dovecot.org
Tue Feb 14 19:42:27 EET 2006


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv25845/lib

Modified Files:
	env-util.c 
Log Message:
Out of memory may not be the only reason putenv() fails. In OSX it seems to
fail if "=value" is given.



Index: env-util.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/env-util.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- env-util.c	16 Apr 2005 19:44:10 -0000	1.10
+++ env-util.c	14 Feb 2006 17:42:25 -0000	1.11
@@ -13,7 +13,7 @@
 		pool = pool_alloconly_create("Environment", 2048);
 
 	if (putenv(p_strdup(pool, env)) != 0)
-		i_fatal("Environment full, can't add: %s", env);
+		i_fatal("putenv(%s) failed: %m", env);
 }
 
 void env_clean(void)



More information about the dovecot-cvs mailing list