Explorar el Código

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 hace 14 años
padre
commit
f35fc19fdb
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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;