pulse-server: don't append "/pulse" to PULSE_RUNTIME_PATH

Fixes #2431
This commit is contained in:
Wim Taymans 2022-06-09 17:06:07 +02:00
parent 31bf631057
commit 4821c7ca2f
3 changed files with 12 additions and 9 deletions

View file

@ -460,7 +460,7 @@ static int parse_unix_address(const char *address, struct sockaddr_storage *addr
if (address[0] != '/') {
char runtime_dir[PATH_MAX];
if ((res = get_runtime_dir(runtime_dir, sizeof(runtime_dir), "pulse")) < 0)
if ((res = get_runtime_dir(runtime_dir, sizeof(runtime_dir))) < 0)
return res;
res = snprintf(addr.sun_path, sizeof(addr.sun_path),