]> code.delx.au - pulseaudio/blobdiff - polyp/polyplib-context.c
* fix autospawn lock file creation
[pulseaudio] / polyp / polyplib-context.c
index 899a81765eb55a95417b4a25a1d3cf2b5bf3b9c5..517fcbeb487568355cc59ed6e037069195dda85f 100644 (file)
@@ -592,6 +592,7 @@ int pa_context_connect(struct pa_context *c, const char *server, int spawn, cons
             char lf[PATH_MAX];
 
             pa_runtime_path(AUTOSPAWN_LOCK, lf, sizeof(lf));
+            pa_make_secure_parent_dir(lf);
             assert(c->autospawn_lock_fd <= 0);
             c->autospawn_lock_fd = pa_lock_lockfile(lf);