From: Zbigniew Jędrzejewski-Szmek Date: Fri, 2 Jul 2021 08:53:40 +0000 (+0200) Subject: basic/time-util: fix errno name X-Git-Tag: v249~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8def4b347a7b3f6e469b49aa175879b2e551cee9;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/basic/time-util.c b/src/basic/time-util.c index 796caac6917..5d162e8ffe8 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;