]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic/time-util: fix errno name
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 2 Jul 2021 08:53:40 +0000 (10:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Jul 2021 12:21:21 +0000 (14:21 +0200)
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

index 796caac6917a1ddf65621b9e4046c6faa5fdbe7e..5d162e8ffe85bf719d2ed103a8e306e94e09d19b 100644 (file)
@@ -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;