Commit 9a3d0fe8 authored by Sam Ravnborg's avatar Sam Ravnborg
Browse files

kconfig: fix saving alternate kconfig file in parent dir

This fixes bugzilla entry: 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: default avatarSam Ravnborg <>
parent ea837f1c
......@@ -517,7 +517,7 @@ int conf_write(const char *name)
if (*tmpname) {
strcat(dirname, name ? name : conf_get_configname());
strcat(dirname, basename);
strcat(dirname, ".old");
rename(newname, dirname);
if (rename(tmpname, newname))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment