Skip to content

Commit

Permalink
kconfig: fix saving alternate kconfig file in parent dir
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Sam Ravnborg committed Oct 1, 2006
1 parent ea837f1 commit 9a3d0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kconfig/confdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9a3d0fe

Please sign in to comment.