diff options
Diffstat (limited to 'src/firecfg')
-rw-r--r-- | src/firecfg/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/firecfg/main.c b/src/firecfg/main.c index 7d63cb848..c8af9d03a 100644 --- a/src/firecfg/main.c +++ b/src/firecfg/main.c | |||
@@ -218,10 +218,7 @@ static void set_file(const char *name, const char *firejail_exec) { | |||
218 | errExit("asprintf"); | 218 | errExit("asprintf"); |
219 | 219 | ||
220 | struct stat s; | 220 | struct stat s; |
221 | if (stat(fname, &s) == 0) { | 221 | if (stat(fname, &s) != 0) { |
222 | printf(" %s is already present, skipping...\n", name); | ||
223 | } | ||
224 | else { | ||
225 | int rv = symlink(firejail_exec, fname); | 222 | int rv = symlink(firejail_exec, fname); |
226 | if (rv) { | 223 | if (rv) { |
227 | fprintf(stderr, "Error: cannot create %s symbolic link\n", fname); | 224 | fprintf(stderr, "Error: cannot create %s symbolic link\n", fname); |