Browse Source

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>
Bernhard Reutner-Fischer 14 years ago
parent
commit
f35fc19fdb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      extra/config/confdata.c

+ 2 - 0
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;