Allow use of absolute paths with config relative paths
parent
247dbb38bb
commit
cdeefd0851
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue