Skip to content

Commit

Permalink
do not exit if directory creation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
iTrooz committed Dec 23, 2022
1 parent 0bbeb4e commit cfa03c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crontab.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,13 +567,13 @@ static int backup_crontab(const char * crontab_path) {
if (stat(backup_dir, &sb) < OK) {
fprintf(stderr, "%s: ", backup_dir);
perror("stat retry");
exit(ERROR_EXIT);
return -2;
}
}
else {
fprintf(stderr, "%s: ", backup_dir);
perror("mkdir");
exit(ERROR_EXIT);
return -2;
}
}

Expand Down

0 comments on commit cfa03c4

Please sign in to comment.