summaryrefslogtreecommitdiffstats
path: root/environ.c
diff options
context:
space:
mode:
Diffstat (limited to 'environ.c')
-rw-r--r--environ.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/environ.c b/environ.c
index 31e57e0e..7709f29d 100644
--- a/environ.c
+++ b/environ.c
@@ -203,3 +203,13 @@ environ_push(struct environ *env)
setenv(envent->name, envent->value, 1);
}
}
+
+/* Log the environment. */
+void
+environ_log(struct environ *env)
+{
+ struct environ_entry *envent;
+
+ RB_FOREACH(envent, environ, env)
+ log_debug("%s=%s", envent->name, envent->value);
+}