From a98ebc3607a63288a293a5182702ffbbdd867d42 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Sun, 22 Oct 2017 03:26:21 +0100 Subject: [PATCH] profile: realpath all the things! Signed-off-by: Ikey Doherty --- src/redirect/profile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redirect/profile.c b/src/redirect/profile.c index 95a9cd7..5215380 100644 --- a/src/redirect/profile.c +++ b/src/redirect/profile.c @@ -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);