changeset 4016:0d3dd32999a0 HEAD

Out of memory may not be the only reason putenv() fails. In OSX it seems to fail if "=value" is given.
author Timo Sirainen <tss@iki.fi>
date Tue, 14 Feb 2006 19:42:25 +0200
parents 4aeb58dc4f18
children e2d267e6f930
files src/lib/env-util.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/env-util.c	Tue Feb 14 19:22:58 2006 +0200
+++ b/src/lib/env-util.c	Tue Feb 14 19:42:25 2006 +0200
@@ -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)