profile: realpath all the things!

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2017-10-22 03:26:21 +01:00
parent 78fcdf6247
commit a98ebc3607
+2 -2
View File
@@ -84,8 +84,8 @@ LsiRedirect *lsi_redirect_new_path_replacement(const char *source_path, const ch
return NULL;
}
ret->type = LSI_REDIRECT_PATH;
ret->path_source = strdup(source_path);
ret->path_target = strdup(target_path);
ret->path_source = realpath(source_path, NULL);
ret->path_target = realpath(target_path, NULL);
if (!ret->path_source || !ret->path_target) {
lsi_redirect_free(ret);