From afe0e236a855b8917c1f4c1bc0273d27dfabda62 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 19 Jul 2016 11:47:44 -0400 Subject: default.profile bug --- src/firejail/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/firejail/main.c b/src/firejail/main.c index 232a57499..703b9913b 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c @@ -2072,8 +2072,6 @@ int main(int argc, char **argv) { fprintf(stderr, "Warning: default profile disabled by --chroot option\n"); else if (arg_overlay) fprintf(stderr, "Warning: default profile disabled by --overlay option\n"); -// else if (cfg.home_private_keep) -// fprintf(stderr, "Warning: default profile disabled by --private-home option\n"); else { // try to load a default profile char *profile_name = DEFAULT_USER_PROFILE; @@ -2096,6 +2094,10 @@ int main(int argc, char **argv) { else custom_profile = profile_find(profile_name, SYSCONFDIR); } + if (!custom_profile) { + fprintf(stderr, "Error: no default.profile installed\n"); + exit(1); + } if (custom_profile && !arg_quiet) printf("\n** Note: you can use --noprofile to disable %s.profile **\n\n", profile_name); -- cgit v1.2.3-70-g09d2