mirror of
https://github.com/sigmasternchen/CFloor
synced 2025-03-15 20:28:56 +00:00
document roots are realpaths
This commit is contained in:
parent
f453c9ba55
commit
52dbf646ec
1 changed files with 2 additions and 2 deletions
|
@ -418,9 +418,9 @@ struct config* config_parse(FILE* file) {
|
||||||
state = SITE_ROOT_VALUE;
|
state = SITE_ROOT_VALUE;
|
||||||
break;
|
break;
|
||||||
case SITE_ROOT_VALUE:
|
case SITE_ROOT_VALUE:
|
||||||
tmp = strclone(currentToken);
|
tmp = realpath(currentToken);
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
error("config: error cloning document root string");
|
error("config: error getting realpath of document root: %s", strerror(errno));
|
||||||
freeEverything(toFree, toFreeLength);
|
freeEverything(toFree, toFreeLength);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue