mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
chown() and chmod() aren't available on Windows.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@793 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
fade8b0883
commit
d26621371e
2 changed files with 6 additions and 2 deletions
|
|
@ -140,8 +140,12 @@ int pa_make_secure_dir(const char* dir) {
|
|||
if (errno != EEXIST)
|
||||
return -1;
|
||||
|
||||
#ifdef HAVE_CHOWN
|
||||
chown(dir, getuid(), getgid());
|
||||
#endif
|
||||
#ifdef HAVE_CHMOD
|
||||
chmod(dir, 0700);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LSTAT
|
||||
if (lstat(dir, &st) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue