diff options
-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 7ab77998e..491ef8e1b 100644 --- a/src/firejail/pulseaudio.c +++ b/src/firejail/pulseaudio.c | |||
@@ -45,14 +45,14 @@ static void disable_file(const char *file) { | |||
45 | // disable pulseaudio socket | 45 | // disable pulseaudio socket |
46 | void pulseaudio_disable(void) { | 46 | void pulseaudio_disable(void) { |
47 | //************************************** | 47 | //************************************** |
48 | // blacklist any pulse* directory in /tmp directory | 48 | // blacklist any pulse* file in /tmp directory |
49 | //************************************** | 49 | //************************************** |
50 | DIR *dir; | 50 | DIR *dir; |
51 | if (!(dir = opendir("/tmp"))) { | 51 | if (!(dir = opendir("/tmp"))) { |
52 | // sleep 2 seconds and try again | 52 | // sleep 2 seconds and try again |
53 | sleep(2); | 53 | sleep(2); |
54 | if (!(dir = opendir("/tmp"))) { | 54 | if (!(dir = opendir("/tmp"))) { |
55 | fprintf(stderr, "Warning: cannot open /tmp directory. PulseAudio sockets not disabled\n"); | 55 | fprintf(stderr, "Warning: cannot open /tmp directory. PulseAudio sockets are not disabled\n"); |
56 | return; | 56 | return; |
57 | } | 57 | } |
58 | } | 58 | } |