[core] use current dir if context->basedir blank

master
Glenn Strauss 6 months ago
parent ee6df0961b
commit a6d4a98c07
  1. 3
      src/configfile.c

@ -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…
Cancel
Save