document roots are realpaths

This commit is contained in:
overflowerror 2019-03-13 16:53:08 +01:00
parent f453c9ba55
commit 52dbf646ec

View file

@ -418,9 +418,9 @@ struct config* config_parse(FILE* file) {
state = SITE_ROOT_VALUE;
break;
case SITE_ROOT_VALUE:
tmp = strclone(currentToken);
tmp = realpath(currentToken);
if (tmp == NULL) {
error("config: error cloning document root string");
error("config: error getting realpath of document root: %s", strerror(errno));
freeEverything(toFree, toFreeLength);
return NULL;
}