asterisk.c: Don't log an error if .asterisk_history does not exist.

Fixes #751
pull/762/head
Sean Bright 11 months ago committed by asterisk-org-access-app[bot]
parent d065895c83
commit e1db3027af

@ -3182,7 +3182,12 @@ static int ast_el_read_history(const char *filename)
ast_el_initialize();
}
return history(el_hist, &ev, H_LOAD, filename);
if (access(filename, F_OK) == 0) {
return history(el_hist, &ev, H_LOAD, filename);
}
/* If the history file doesn't exist, failing to read it is unremarkable. */
return 0;
}
static void process_histfile(int (*readwrite)(const char *filename))

Loading…
Cancel
Save