From b9509c0fbc13679393389611a5c4b88b0324306a Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 24 Sep 2017 13:47:04 +0200 Subject: Fix defconfig srctree absolute/relative mixup bug This code in zconf.l says !=, not ==. Thought the behavior seemed weird. if (!f && name != NULL && name[0] != '/') { env = getenv(SRCTREE); if (env) { sprintf(fullname, "%s/%s", env, name); f = fopen(fullname, "r"); } } return f; Thankfully only broken for a short while. Also gives much simpler code. --- tests/Kdefconfig_srctree | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/Kdefconfig_srctree b/tests/Kdefconfig_srctree index 3aa4505..d2591fa 100644 --- a/tests/Kdefconfig_srctree +++ b/tests/Kdefconfig_srctree @@ -1,5 +1,5 @@ config A string option defconfig_list - default "/sub/defconfig_in_sub" # Assume this doesn't exist + default "sub/defconfig_in_sub" # Assume this doesn't exist default "Kconfiglib/tests/defconfig_2" -- cgit v1.2.3