diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-01-06 20:38:02 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-01-06 20:38:02 +0100 |
commit | a6ff950e71ea665fff99740f7b3e0137d451a79e (patch) | |
tree | 502ff29d4c0d410285e54666571b1831061e6af0 /src/execute.c | |
parent | 7fc942b29e7bdb9d6aa3123f53da6680edabd8f0 (diff) |
execute: drop empty assignments from env blocks on execution but keep them around otherwise to make them visible
Diffstat (limited to 'src/execute.c')
-rw-r--r-- | src/execute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/execute.c b/src/execute.c index 05abd5aaac..8f486e2004 100644 --- a/src/execute.c +++ b/src/execute.c @@ -1303,6 +1303,8 @@ int exec_spawn(ExecCommand *command, goto fail; } + final_env = strv_env_clean(final_env); + execve(command->path, final_argv, final_env); r = EXIT_EXEC; |