diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index b3a8dcfd7..ba952b1cb 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -2409,8 +2409,10 @@ int main(int argc, char **argv) { | |||
2409 | int display = x11_display(); | 2409 | int display = x11_display(); |
2410 | if (display > 0) | 2410 | if (display > 0) |
2411 | set_x11_run_file(sandbox_pid, display); | 2411 | set_x11_run_file(sandbox_pid, display); |
2412 | flock(lockfd_directory, LOCK_UN); | 2412 | if (lockfd_directory != -1) { |
2413 | close(lockfd_directory); | 2413 | flock(lockfd_directory, LOCK_UN); |
2414 | close(lockfd_directory); | ||
2415 | } | ||
2414 | EUID_USER(); | 2416 | EUID_USER(); |
2415 | 2417 | ||
2416 | // clone environment | 2418 | // clone environment |