[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <11596999682904-git-send-email-sam@ravnborg.org>
Date: Sun, 01 Oct 2006 12:52:45 +0200
From: sam@...nborg.org
To: linux-kernel@...r.kernel.org
Cc: Sam Ravnborg <sam@...tun.ravnborg.org>,
Sam Ravnborg <sam@...nborg.org>
Subject: [PATCH 12/13] kconfig: fix saving alternate kconfig file in parent dir
From: Sam Ravnborg <sam@...tun.ravnborg.org>
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@...nborg.org>
---
scripts/kconfig/confdata.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index 69f96b3..66b15ef 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -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))
--
1.4.1
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists