From cdeefd0851afe64f38bd6b174342df3bf956ee93 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 30 Sep 2023 10:18:56 +0000 Subject: [PATCH] Allow use of absolute paths with config relative paths --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 4c43d83..f352a5c 100644 --- a/src/main.c +++ b/src/main.c @@ -707,7 +707,7 @@ static int blank_screen(struct wayvnc* self) static char* get_cfg_path(const struct cfg* cfg, char* dst, const char* src) { - if (!cfg->use_relative_paths) { + if (!cfg->use_relative_paths || src[0] == '/') { strlcpy(dst, src, PATH_MAX); return dst; }