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:
Pierre Ossman 2006-04-24 15:07:09 +00:00
parent fade8b0883
commit d26621371e
2 changed files with 6 additions and 2 deletions

View file

@ -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)