From 4d1a69043862ed979642f5688097160355d4cc81 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 11 Feb 2013 03:46:08 +0100 Subject: env: considerably beef up environment cleaning logic Now, actually check if the environment variable names and values used are valid, before accepting them. With this in place are at some places more rigid than POSIX, and less rigid at others. For example, this code allows lower-case environment variables (which POSIX suggests not to use), but it will not allow non-UTF8 variable values. All in all this should be a good middle ground of what to allow and what not to allow as environment variables. (This also splits out all environment related calls into env-util.[ch]) --- src/notify/notify.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/notify') diff --git a/src/notify/notify.c b/src/notify/notify.c index f521f56659..1e9766f862 100644 --- a/src/notify/notify.c +++ b/src/notify/notify.c @@ -34,6 +34,7 @@ #include "log.h" #include "sd-readahead.h" #include "build.h" +#include "env-util.h" static bool arg_ready = false; static pid_t arg_pid = 0; -- cgit v1.2.1