mirror of
https://github.com/sigmasternchen/CFloor
synced 2025-03-15 12:28:53 +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;
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue