From 9af3c2c72729536f5822c78572510b251895eb70 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 10 Jun 2013 22:25:31 +0200 Subject: [PATCH] Add another debug() print to init_from_environment(). --- src/trackfds.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/trackfds.h b/src/trackfds.h index 1eede80..f84e20d 100644 --- a/src/trackfds.h +++ b/src/trackfds.h @@ -95,6 +95,9 @@ static void init_from_environment(void) { errno = saved_errno; return; } +#ifdef DEBUG + debug(" getenv(\"%s\"): \"%s\"\n", ENV_NAME_FDS, env); +#endif /* Environment is read-only. */ char env_copy[strlen(env) + 1]; strcpy(env_copy, env); @@ -217,7 +220,7 @@ static void update_environment(void) { update_environment_buffer(env); #if 0 - debug(" setenv('%s', '%s', 1)\n", ENV_NAME_FDS, env); + debug(" setenv(\"%s\", \"%s\", 1)\n", ENV_NAME_FDS, env); #endif setenv(ENV_NAME_FDS, env, 1 /* overwrite */); -- 2.43.2