X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fenv-util.c;h=20b208f63c6a8bb0b0bf0647e0b2f5a76efd8d1f;hp=b2e45531ab7ec0131e102075bc9b09397dfe0fb1;hb=6294aa76d818e831de4592b41a37e225fd0871f9;hpb=7568345034f2890af745747783c5abfbf6eccf0f diff --git a/src/shared/env-util.c b/src/shared/env-util.c index b2e45531a..20b208f63 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