From: Sebastian Harl Date: Fri, 13 Dec 2013 13:33:13 +0000 (+0100) Subject: sysdb: Don't warn about missing history file when loading history. X-Git-Tag: sysdb-0.1.0~300^2~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4d64da62a0eae92df1900b5335e9bf6a1ac3e4e7;p=sysdb.git sysdb: Don't warn about missing history file when loading history. --- diff --git a/src/client/sysdb.c b/src/client/sysdb.c index 7283a21..66790cd 100644 --- a/src/client/sysdb.c +++ b/src/client/sysdb.c @@ -228,7 +228,7 @@ main(int argc, char **argv) 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)));