Переглянути джерело

kconfig: fix saving alternate kconfig file in parent dir

This fixes bugzilla entry: 7182
http://bugzilla.kernel.org/show_bug.cgi?id=7182

With this patch we no longer append the directory part twice
before saving the config file.
This patch has been sent to Roman Zippel for review with no feedback.
It is so obviously simple that this should be OK to apply it anyway.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Sam Ravnborg 19 роки тому
батько
коміт
9a3d0fe84f
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      scripts/kconfig/confdata.c

+ 1 - 1
scripts/kconfig/confdata.c

@@ -517,7 +517,7 @@ int conf_write(const char *name)
 	fclose(out);
 	fclose(out);
 
 
 	if (*tmpname) {
 	if (*tmpname) {
-		strcat(dirname, name ? name : conf_get_configname());
+		strcat(dirname, basename);
 		strcat(dirname, ".old");
 		strcat(dirname, ".old");
 		rename(newname, dirname);
 		rename(newname, dirname);
 		if (rename(tmpname, newname))
 		if (rename(tmpname, newname))