diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-11 12:56:51 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-11 13:20:34 +0200 |
commit | 71ecc858fa91a686a050bee51804d43865ce1acc (patch) | |
tree | 2bb4c6e504a1d3f652e00ce84bd9e1a3c21fd588 /src/shared/util.c | |
parent | 6996295f85a0402b8a72d76c1eab02fb8152f81d (diff) |
main: drop container/initrd env vars from inherited set
Leave the env vars used in the container/initrd logic set for PID1, but
don't inherit them to any children.
Diffstat (limited to 'src/shared/util.c')
-rw-r--r-- | src/shared/util.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/shared/util.c b/src/shared/util.c index fef58d5f30..73e0a290b8 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -4276,24 +4276,6 @@ char *fstab_node_to_udev_node(const char *p) { return strdup(p); } -void filter_environ(const char *prefix) { - int i, j; - assert(prefix); - - if (!environ) - return; - - for (i = 0, j = 0; environ[i]; i++) { - - if (startswith(environ[i], prefix)) - continue; - - environ[j++] = environ[i]; - } - - environ[j] = NULL; -} - bool tty_is_vc(const char *tty) { assert(tty); |