This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=62a37fb72a811cc98e8357f38467ff0ac6a396f8

commit 62a37fb72a811cc98e8357f38467ff0ac6a396f8 (HEAD -> main)
Author: Guillem Jover <[email protected]>
AuthorDate: Sun Oct 2 04:09:04 2022 +0200

    u-a: Call tzset() explicitly now that we use localtime_r()
    
    The localtime_r() function is not guaranteed to call tzset() internally
    (or an equivalent functionality) as localtime() does.
    
    Changelog: internal
---
 utils/update-alternatives.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/utils/update-alternatives.c b/utils/update-alternatives.c
index f02426ddc..1bc63ff7b 100644
--- a/utils/update-alternatives.c
+++ b/utils/update-alternatives.c
@@ -2926,6 +2926,7 @@ main(int argc, char **argv)
        bindtextdomain(PACKAGE, LOCALEDIR);
        textdomain(PACKAGE);
 
+       tzset();
        umask(022);
 
        instdir = fsys_set_dir(NULL);

-- 
Dpkg.Org's dpkg

Reply via email to