diff --git a/src/client/sysdb.c b/src/client/sysdb.c
index 7283a21ae9ce42321e33885b17e6d3775894c307..66790cd29872a2db358f7d41605a9df707e3e0d2 100644 (file)
--- a/src/client/sysdb.c
+++ b/src/client/sysdb.c
hist_file[sizeof(hist_file) - 1] = '\0';
errno = 0;
hist_file[sizeof(hist_file) - 1] = '\0';
errno = 0;
- if (read_history(hist_file)) {
+ if (read_history(hist_file) && (errno != ENOENT)) {
char errbuf[1024];
sdb_log(SDB_LOG_WARNING, "Failed to load history (%s): %s",
hist_file, sdb_strerror(errno, errbuf, sizeof(errbuf)));
char errbuf[1024];
sdb_log(SDB_LOG_WARNING, "Failed to load history (%s): %s",
hist_file, sdb_strerror(errno, errbuf, sizeof(errbuf)));