From 895f712df8afc053b59783189954e665ccd21dab Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 25 Jun 2016 23:39:16 +0300 Subject: option: Do not expand options, obtained from XDG vars It is a wrong thing to do, this makes valid variable values be treated incorrectly: in XDG_DATA_HOME='/home/$foo/.local/share' `$foo` should be treated literally and not expanded to `foo` environment variable value. Also makes option_expand not try to expand too long strings even if these too long strings are default values. Previously it thought that default values should always be expanded. Also does not try to expand NULL should it be the default value just in case. Fixes #4961 --- test/functional/options/defaults_spec.lua | 2 -- 1 file changed, 2 deletions(-) (limited to 'test') diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua index a36939b0bd..161791ab21 100644 --- a/test/functional/options/defaults_spec.lua +++ b/test/functional/options/defaults_spec.lua @@ -76,5 +76,3 @@ describe('startup defaults', function() end) end) end) - - -- cgit