[core] use current dir if context->basedir blank
parent
ee6df0961b
commit
a6d4a98c07
|
@ -2169,7 +2169,8 @@ int config_parse_file(server *srv, config_t *context, const char *fn) {
|
|||
#endif
|
||||
glob_t gl;
|
||||
|
||||
if ((fn[0] == '/' || fn[0] == '\\') ||
|
||||
if (buffer_is_blank(context->basedir) ||
|
||||
(fn[0] == '/' || fn[0] == '\\') ||
|
||||
(fn[0] == '.' && (fn[1] == '/' || fn[1] == '\\')) ||
|
||||
(fn[0] == '.' && fn[1] == '.' && (fn[2] == '/' || fn[2] == '\\'))) {
|
||||
buffer_copy_string_len(filename, fn, fnlen);
|
||||
|
|
Loading…
Reference in New Issue