diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 1a37aca2f..9a013989a 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -239,12 +239,15 @@ static void init_cfg(int argc, char **argv) { | |||
239 | } | 239 | } |
240 | cfg.cwd = getcwd(NULL, 0); | 240 | cfg.cwd = getcwd(NULL, 0); |
241 | 241 | ||
242 | // chack user database | 242 | // check user database |
243 | if (!firejail_user_check(cfg.username)) { | 243 | if (!firejail_user_check(cfg.username)) { |
244 | fprintf(stderr, "Error: the user is not allowed to use Firejail. " | 244 | fprintf(stderr, "Error: the user is not allowed to use Firejail. " |
245 | "Please add the user in %s/firejail.users file, " | 245 | "Please add the user in %s/firejail.users file, " |
246 | "either by running \"sudo firecfg\", or by editing the file directly.\n" | 246 | "either by running \"sudo firecfg\", or by editing the file directly.\n" |
247 | "See \"man firejail-users\" for more details.\n", SYSCONFDIR); | 247 | "See \"man firejail-users\" for more details.\n", SYSCONFDIR); |
248 | |||
249 | // attempt to run the program as is | ||
250 | run_symlink(argc, argv, 1); | ||
248 | exit(1); | 251 | exit(1); |
249 | } | 252 | } |
250 | 253 | ||
@@ -914,7 +917,7 @@ int main(int argc, char **argv) { | |||
914 | 917 | ||
915 | // check argv[0] symlink wrapper if this is not a login shell | 918 | // check argv[0] symlink wrapper if this is not a login shell |
916 | if (*argv[0] != '-') | 919 | if (*argv[0] != '-') |
917 | run_symlink(argc, argv); // if symlink detected, this function will not return | 920 | run_symlink(argc, argv, 0); // if symlink detected, this function will not return |
918 | 921 | ||
919 | // check if we already have a sandbox running | 922 | // check if we already have a sandbox running |
920 | // If LXC is detected, start firejail sandbox | 923 | // If LXC is detected, start firejail sandbox |