mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
chown() and chmod() /tmp/.esd/ before checking if everything is ok with it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@770 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
a7c5ed1994
commit
0cc2e04157
1 changed files with 4 additions and 1 deletions
|
|
@ -140,6 +140,9 @@ int pa_make_secure_dir(const char* dir) {
|
||||||
if (errno != EEXIST)
|
if (errno != EEXIST)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
chown(dir, getuid(), getgid());
|
||||||
|
chmod(dir, 0700);
|
||||||
|
|
||||||
#ifdef HAVE_LSTAT
|
#ifdef HAVE_LSTAT
|
||||||
if (lstat(dir, &st) < 0)
|
if (lstat(dir, &st) < 0)
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue