git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1423
fefdeb5f-60dc-0310-8127-
8f9354f1896f
goto fail;
}
#else
- pa_log_warn("secure directory creation not supported on Win32.");
+ pa_log_warn("secure directory creation not supported on Win32.");
#endif
return 0;
fn = buf;
#endif
- if ((f = fopen(fn, mode)) || errno != ENOENT) {
+ f = fopen(fn, mode);
+ if (f != NULL) {
if (result)
*result = pa_xstrdup(fn);
pa_xfree(lfn);
return f;
}
+ if (errno != ENOENT) {
+ pa_log_warn("WARNING: failed to open configuration file '%s': %s",
+ lfn, pa_cstrerror(errno));
+ }
+
pa_xfree(lfn);
}
}