From 8def4b347a7b3f6e469b49aa175879b2e551cee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 2 Jul 2021 10:53:40 +0200 Subject: [PATCH] basic/time-util: fix errno name Fixup for bdaeafea5dff32ccb479ecf8fe0a3173c995fbf5. This was supposed to be pushed in an updated version, but I forgot to stage the change. --- src/basic/time-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/time-util.c b/src/basic/time-util.c index 796caac691..5d162e8ffe 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -1437,7 +1437,7 @@ int verify_timezone(const char *name, int log_level) { /* Magic from tzfile(5) */ if (memcmp(buf, "TZif", 4) != 0) - return log_full_errno(log_level, SYNTHETIC_ERRNO(EIO), + return log_full_errno(log_level, SYNTHETIC_ERRNO(EBADMSG), "Timezone file '%s' has wrong magic bytes", t); return 0;