]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
kconfig: fix saving alternate kconfig file in parent dir
authorSam Ravnborg <sam@neptun.ravnborg.org>
Sun, 1 Oct 2006 09:48:53 +0000 (11:48 +0200)
committerSam Ravnborg <sam@neptun.ravnborg.org>
Sun, 1 Oct 2006 09:48:53 +0000 (11:48 +0200)
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>
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))