diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-20 19:25:32 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-22 20:10:55 +0100 |
commit | fa256f43e7ad6cafabc0ad89a0aee143670e1cca (patch) | |
tree | 30ac30c0249f9673bb3aac2a0f0f943c229e19aa /src/basic/env-util.h | |
parent | f70e6fb471a4eeed8e2a4a7c608beabbb0aba8be (diff) | |
download | systemd-fa256f43e7ad6cafabc0ad89a0aee143670e1cca.tar.gz |
basic/env-util: add putenv_dup()
Diffstat (limited to 'src/basic/env-util.h')
-rw-r--r-- | src/basic/env-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/basic/env-util.h b/src/basic/env-util.h index 7ba8488af7..1fbe7e4270 100644 --- a/src/basic/env-util.h +++ b/src/basic/env-util.h @@ -58,6 +58,9 @@ int getenv_bool_secure(const char *p); /* Like setenv, but calls unsetenv if value == NULL. */ int set_unset_env(const char *name, const char *value, bool overwrite); +/* Like putenv, but duplicates the memory like setenv. */ +int putenv_dup(const char *assignment, bool override); + int setenv_systemd_exec_pid(bool update_only); /* Parses and does sanity checks on an environment variable containing |