diff options
Diffstat (limited to 'src/firejail/pulseaudio.c')
-rw-r--r-- | src/firejail/pulseaudio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/firejail/pulseaudio.c b/src/firejail/pulseaudio.c index 110d91f64..0cd5bace2 100644 --- a/src/firejail/pulseaudio.c +++ b/src/firejail/pulseaudio.c | |||
@@ -97,8 +97,7 @@ void pulseaudio_init(void) { | |||
97 | if (asprintf(&pulsedir, "%s/pulse", MNT_DIR) == -1) | 97 | if (asprintf(&pulsedir, "%s/pulse", MNT_DIR) == -1) |
98 | errExit("asprintf"); | 98 | errExit("asprintf"); |
99 | int rv = mkdir(pulsedir, S_IRWXU | S_IRWXG | S_IRWXO); | 99 | int rv = mkdir(pulsedir, S_IRWXU | S_IRWXG | S_IRWXO); |
100 | if (rv == -1) | 100 | (void) rv; // in --chroot mode the directory canalready be there |
101 | errExit("mkdir"); | ||
102 | if (chown(pulsedir, getuid(), getgid()) < 0) | 101 | if (chown(pulsedir, getuid(), getgid()) < 0) |
103 | errExit("chown"); | 102 | errExit("chown"); |
104 | if (chmod(pulsedir, 0700) < 0) | 103 | if (chmod(pulsedir, 0700) < 0) |