diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-04-24 15:07:09 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-04-24 15:07:09 +0000 |
commit | d26621371e6bf5040fe833f046ff81a1c7cac94b (patch) | |
tree | fb50a4013cbfea86db7c3bdc3a72a1093872df4a /src/polypcore | |
parent | fade8b0883cc5a22a00e8fd9c1358d9628923355 (diff) |
chown() and chmod() aren't available on Windows.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@793 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/polypcore')
-rw-r--r-- | src/polypcore/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/polypcore/util.c b/src/polypcore/util.c index 615ea881..191fa809 100644 --- a/src/polypcore/util.c +++ b/src/polypcore/util.c @@ -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) |