diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-07 12:04:55 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-07 15:25:55 +0200 |
commit | 6294aa76d818e831de4592b41a37e225fd0871f9 (patch) | |
tree | ddf0aa3a760fbe4dc1126d4fd872e0d525203197 /src/shared/env-util.c | |
parent | 7568345034f2890af745747783c5abfbf6eccf0f (diff) |
util: don't consider tabs special in string_has_cc() anymore
Instead, take a list of exceptions to our usual CC check
Diffstat (limited to 'src/shared/env-util.c')
-rw-r--r-- | src/shared/env-util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/env-util.c b/src/shared/env-util.c index b2e45531ab..20b208f63c 100644 --- a/src/shared/env-util.c +++ b/src/shared/env-util.c @@ -78,7 +78,9 @@ bool env_value_is_valid(const char *e) { if (!utf8_is_valid(e)) return false; - if (string_has_cc(e)) + /* bash allows tabs in environment variables, and so should + * we */ + if (string_has_cc(e, "\t")) return false; /* POSIX says the overall size of the environment block cannot |