diff options
author | netblue30 <netblue30@protonmail.com> | 2024-04-28 10:17:42 -0400 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2024-04-28 10:17:42 -0400 |
commit | 4ad124a5fb9071d200408e835128a5db0f079886 (patch) | |
tree | 4f7638de39e5c43b34126cf345f004f7ae73b975 /src/fbuilder/main.c | |
parent | static ip map (diff) | |
download | firejail-4ad124a5fb9071d200408e835128a5db0f079886.tar.gz firejail-4ad124a5fb9071d200408e835128a5db0f079886.tar.zst firejail-4ad124a5fb9071d200408e835128a5db0f079886.zip |
--fbuilder cleanup
Diffstat (limited to 'src/fbuilder/main.c')
-rw-r--r-- | src/fbuilder/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fbuilder/main.c b/src/fbuilder/main.c index b03d2f3dd..884971d42 100644 --- a/src/fbuilder/main.c +++ b/src/fbuilder/main.c | |||
@@ -66,21 +66,21 @@ printf("\n"); | |||
66 | 66 | ||
67 | // don't run if the file exists | 67 | // don't run if the file exists |
68 | if (access(argv[i] + 8, F_OK) == 0) { | 68 | if (access(argv[i] + 8, F_OK) == 0) { |
69 | fprintf(stderr, "Error: the profile file already exists. Please use a different file name.\n"); | 69 | fprintf(stderr, "Error fbuilder: the profile file already exists. Please use a different file name.\n"); |
70 | exit(1); | 70 | exit(1); |
71 | } | 71 | } |
72 | 72 | ||
73 | // check file access | 73 | // check file access |
74 | fp = fopen(argv[i] + 8, "w"); | 74 | fp = fopen(argv[i] + 8, "w"); |
75 | if (!fp) { | 75 | if (!fp) { |
76 | fprintf(stderr, "Error: cannot open profile file.\n"); | 76 | fprintf(stderr, "Error fbuilder: cannot open profile file.\n"); |
77 | exit(1); | 77 | exit(1); |
78 | } | 78 | } |
79 | prof_file = argv[i] + 8; | 79 | prof_file = argv[i] + 8; |
80 | } | 80 | } |
81 | else { | 81 | else { |
82 | if (*argv[i] == '-') { | 82 | if (*argv[i] == '-') { |
83 | fprintf(stderr, "Error: invalid program\n"); | 83 | fprintf(stderr, "Error fbuilder: invalid program\n"); |
84 | usage(); | 84 | usage(); |
85 | exit(1); | 85 | exit(1); |
86 | } | 86 | } |
@@ -90,7 +90,7 @@ printf("\n"); | |||
90 | } | 90 | } |
91 | 91 | ||
92 | if (prog_index == 0) { | 92 | if (prog_index == 0) { |
93 | fprintf(stderr, "Error : program and arguments required\n"); | 93 | fprintf(stderr, "Error fbuilder: program and arguments required\n"); |
94 | usage(); | 94 | usage(); |
95 | if (prof_file) { | 95 | if (prof_file) { |
96 | fclose(fp); | 96 | fclose(fp); |