mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
Generalise lstat fallback.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@429 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5fcbf04f5b
commit
8258146625
2 changed files with 4 additions and 3 deletions
|
|
@ -139,10 +139,10 @@ int pa_make_secure_dir(const char* dir) {
|
|||
if (errno != EEXIST)
|
||||
return -1;
|
||||
|
||||
#ifdef OS_IS_WIN32
|
||||
if (stat(dir, &st) < 0)
|
||||
#else
|
||||
#ifdef HAVE_LSTAT
|
||||
if (lstat(dir, &st) < 0)
|
||||
#else
|
||||
if (stat(dir, &st) < 0)
|
||||
#endif
|
||||
goto fail;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue