Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rtadvd call tzset() before chroot so we initialize ...



details:   https://anonhg.NetBSD.org/src/rev/9d611ee21844
branches:  trunk
changeset: 960620:9d611ee21844
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 23 18:13:07 2021 +0000

description:
call tzset() before chroot so we initialize our timezone data

diffstat:

 usr.sbin/rtadvd/rtadvd.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 12ad588d1246 -r 9d611ee21844 usr.sbin/rtadvd/rtadvd.c
--- a/usr.sbin/rtadvd/rtadvd.c  Tue Mar 23 18:06:19 2021 +0000
+++ b/usr.sbin/rtadvd/rtadvd.c  Tue Mar 23 18:13:07 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtadvd.c,v 1.81 2021/03/23 18:06:19 christos Exp $     */
+/*     $NetBSD: rtadvd.c,v 1.82 2021/03/23 18:13:07 christos Exp $     */
 /*     $KAME: rtadvd.c,v 1.92 2005/10/17 14:40:02 suz Exp $    */
 
 /*
@@ -283,6 +283,7 @@
                set[1].fd = -1;
 
        logit(LOG_INFO, "dropping privileges to %s", RTADVD_USER);
+       tzset();
        if (prog_chroot(pw->pw_dir) == -1) {
                logit(LOG_ERR, "chroot: %s: %m", pw->pw_dir);
                return EXIT_FAILURE;



Home | Main Index | Thread Index | Old Index