]> granicus.if.org Git - esp-idf/commitdiff
Create temp config in the same dir as target
authorDeomid Ryabkov <rojer@cesanta.com>
Thu, 8 Dec 2016 19:36:21 +0000 (19:36 +0000)
committerDeomid Ryabkov <rojer@cesanta.com>
Mon, 12 Dec 2016 16:16:14 +0000 (16:16 +0000)
Fixes case where SDK and app are on different mounts

tools/kconfig/confdata.c

index dd243d2abd875b535d006535232821eefad3460b..1e3d1f35b2f62cd024b780ea31b8cb10d6f92d9b 100644 (file)
@@ -771,7 +771,7 @@ int conf_write(const char *name)
        sprintf(newname, "%s%s", dirname, basename);
        env = getenv("KCONFIG_OVERWRITECONFIG");
        if (!env || !*env) {
-               sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
+               sprintf(tmpname, "%s.tmpconfig.%d", newname, (int)getpid());
                out = fopen(tmpname, "w");
        } else {
                *tmpname = 0;