From a88f5138d62cded339e973a229fbcb07ade19247 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 2 May 2014 12:53:56 +0100 Subject: [PATCH] Apply realpath to static files dir for controller. --- src/libutil/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/http.c b/src/libutil/http.c index 5c09f47a71..5bafc91cdf 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1203,7 +1203,7 @@ rspamd_http_router_new (rspamd_http_router_error_handler_t eh, msg_err ("path %s is not a directory", default_fs_path); } else { - new->default_fs_path = g_strdup (default_fs_path); + new->default_fs_path = realpath (default_fs_path, NULL); } } } -- 2.47.3