Skip to content

Commit

Permalink
chore(src/conf): do not print a warning if OLD_CONFIG is not found.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Jun 9, 2023
1 parent c26302a commit c304f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conf/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ int read_config(enum CONFIG file, char *config_file) {
int r = 0;
config_t cfg;

if (access(config_file, F_OK) == -1) {
if (access(config_file, F_OK) == -1 && file != OLD_GLOBAL) {
WARN("Config file %s not found.\n", config_file);
return -1;
}
Expand Down

0 comments on commit c304f4a

Please sign in to comment.