]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - scripts/kconfig/confdata.c
kconfig: fix saving alternate kconfig file in parent dir
[linux-2.6-omap-h63xx.git] / scripts / kconfig / confdata.c
index 69f96b398c22848d39d31907adb43505884a361a..66b15ef029313468b3918a3dcf89ae1dd65c9aa2 100644 (file)
@@ -517,7 +517,7 @@ int conf_write(const char *name)
        fclose(out);
 
        if (*tmpname) {
-               strcat(dirname, name ? name : conf_get_configname());
+               strcat(dirname, basename);
                strcat(dirname, ".old");
                rename(newname, dirname);
                if (rename(tmpname, newname))