When compiling without HAVE_SYMLINK the runtime dir is a real directory, which is attempted to be created. In the case it already exists we shouldn't error out. The HAVE_SYMLINK-enabled code already does this. --- src/pulsecore/core-util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index f171164..d349bab 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -1789,8 +1789,9 @@ char *pa_get_runtime_dir(void) { goto fail; } #else - /* No symlink possible, so let's just create the runtime directly */ - if (mkdir(k) < 0) + /* No symlink possible, so let's just create the runtime directly + * Do not check again if it exists since it cannot be a symlink */ + if (mkdir(k) < 0 && errno != EEXIST) goto fail; #endif -- 1.7.10.4