aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/run_symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/run_symlink.c')
-rw-r--r--src/firejail/run_symlink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/firejail/run_symlink.c b/src/firejail/run_symlink.c
index 2bb4a2ed7..5714206d4 100644
--- a/src/firejail/run_symlink.c
+++ b/src/firejail/run_symlink.c
@@ -89,6 +89,9 @@ void run_symlink(int argc, char **argv, int run_as_is) {
89 89
90 free(selfpath); 90 free(selfpath);
91 91
92 // restore original umask
93 umask(orig_umask);
94
92 // desktop integration is not supported for root user; instead, the original program is started 95 // desktop integration is not supported for root user; instead, the original program is started
93 if (getuid() == 0 || run_as_is) { 96 if (getuid() == 0 || run_as_is) {
94 argv[0] = program; 97 argv[0] = program;