aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Overbruck <mail@duncano.de>2020-02-03 22:26:55 +0100
committerDuncan Overbruck <mail@duncano.de>2020-02-03 22:41:31 +0100
commit50a47d3b7e587fabcce85bc5af10450a3707821a (patch)
tree532888f3d2d55d8171b0799e42cb569ae368e174
parent31d95b9c3339af50f0e6758a1e3a66d846e5145d (diff)
downloadopendoas-50a47d3b7e587fabcce85bc5af10450a3707821a.tar.gz
timestamp.c: remove warning for normal casev6.6.1
-rw-r--r--timestamp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/timestamp.c b/timestamp.c
index c7edb56..6b4354c 100644
--- a/timestamp.c
+++ b/timestamp.c
@@ -205,10 +205,9 @@ timestamp_check(int fd, int secs)
if (st.st_uid != 0 || st.st_gid != getgid() || st.st_mode != (S_IFREG | 0000))
errx(1, "timestamp uid, gid or mode wrong");
- if (!timespecisset(&st.st_atim) || !timespecisset(&st.st_mtim)) {
- warnx("timestamp atim or mtime not set");
+ /* this timestamp was created but never set, invalid but no error */
+ if (!timespecisset(&st.st_atim) || !timespecisset(&st.st_mtim))
return 0;
- }
if (clock_gettime(CLOCK_BOOTTIME, &ts[0]) == -1 ||
clock_gettime(CLOCK_REALTIME, &ts[1]) == -1) {