summaryrefslogtreecommitdiff
path: root/src/shared/env-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-07 12:04:55 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-07 15:25:55 +0200
commit6294aa76d818e831de4592b41a37e225fd0871f9 (patch)
treeddf0aa3a760fbe4dc1126d4fd872e0d525203197 /src/shared/env-util.c
parent7568345034f2890af745747783c5abfbf6eccf0f (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.c4
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