OSDN Git Service

config: support make defconfig O=/f/o/o
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 12 Mar 2010 16:21:02 +0000 (17:21 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 12 Mar 2010 16:24:40 +0000 (17:24 +0100)
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>
extra/config/confdata.c

index 281dd00..2b848d5 100644 (file)
@@ -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;