Allow use of absolute paths with config relative paths

pull/143/merge
Andri Yngvason 2023-09-30 10:18:56 +00:00
parent 247dbb38bb
commit cdeefd0851
1 changed files with 1 additions and 1 deletions

View File

@ -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) 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); strlcpy(dst, src, PATH_MAX);
return dst; return dst;
} }