Преглед изворни кода

Create temp config in the same dir as target

Fixes case where SDK and app are on different mounts
Deomid Ryabkov пре 9 година
родитељ
комит
6380245d3d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tools/kconfig/confdata.c

+ 1 - 1
tools/kconfig/confdata.c

@@ -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;