diff options
author | smitsohu <smitsohu@gmail.com> | 2018-08-25 10:29:16 +0200 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2018-08-25 10:29:16 +0200 |
commit | da76c64dcdf7f98e94a33fa74e1e0050e384ce5c (patch) | |
tree | d38487546b1e3540aac6db15a2f2ba665d13874d /src/firejail/pulseaudio.c | |
parent | Add python program to more easily debug profiles (diff) | |
download | firejail-da76c64dcdf7f98e94a33fa74e1e0050e384ce5c.tar.gz firejail-da76c64dcdf7f98e94a33fa74e1e0050e384ce5c.tar.zst firejail-da76c64dcdf7f98e94a33fa74e1e0050e384ce5c.zip |
cleanup, small improvements
Diffstat (limited to 'src/firejail/pulseaudio.c')
-rw-r--r-- | src/firejail/pulseaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/pulseaudio.c b/src/firejail/pulseaudio.c index 521f144e8..e6696ecb4 100644 --- a/src/firejail/pulseaudio.c +++ b/src/firejail/pulseaudio.c | |||
@@ -117,7 +117,7 @@ void pulseaudio_init(void) { | |||
117 | 117 | ||
118 | int rv = mkdir(dir1, 0755); | 118 | int rv = mkdir(dir1, 0755); |
119 | if (rv == 0) { | 119 | if (rv == 0) { |
120 | if (set_perms(dir1, getuid(), getgid(), 0755)) | 120 | if (chmod(dir1, 0755)) |
121 | {;} // do nothing | 121 | {;} // do nothing |
122 | } | 122 | } |
123 | #ifdef HAVE_GCOV | 123 | #ifdef HAVE_GCOV |
@@ -153,7 +153,7 @@ void pulseaudio_init(void) { | |||
153 | 153 | ||
154 | int rv = mkdir(dir1, 0700); | 154 | int rv = mkdir(dir1, 0700); |
155 | if (rv == 0) { | 155 | if (rv == 0) { |
156 | if (set_perms(dir1, getuid(), getgid(), 0700)) | 156 | if (chmod(dir1, 0700)) |
157 | {;} // do nothing | 157 | {;} // do nothing |
158 | } | 158 | } |
159 | #ifdef HAVE_GCOV | 159 | #ifdef HAVE_GCOV |