summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-03-12 17:21:02 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-03-12 17:24:40 +0100
commitf35fc19fdb34dd925ba144992acb1ceaec79666e (patch)
treea4ab87e2bcb5d8f3440e825f49ac0b340551e5fd
parent58a0daa6a5f4ef60234ad8200017d6d19be287c7 (diff)
config: support make defconfig O=/f/o/o
previously wanted to create the temporary cfg file in the srcdir (which failed on a RO srcdir) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--extra/config/confdata.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/config/confdata.c b/extra/config/confdata.c
index 281dd0024..2b848d5d0 100644
--- a/extra/config/confdata.c
+++ b/extra/config/confdata.c
@@ -402,6 +402,8 @@ int conf_write(const char *name)
char *env;
dirname[0] = 0;
+ if (name == NULL)
+ name = conf_get_configname();
if (name && name[0]) {
struct stat st;
char *slash;