From 5b17fcd712269e2d031bb663966c8cbbd0c5a915 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Wed, 19 Jul 2023 11:32:19 +0200 Subject: [PATCH] print log line about unprivileged user after having initialized the values that are printed we currently were logging as if we were starting with uid=0, which wasn't the case. --- serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serve.go b/serve.go index 39197ff..989308b 100644 --- a/serve.go +++ b/serve.go @@ -186,9 +186,9 @@ requested, other TLS certificates are requested on demand. } } } else { - log.Print("starting as unprivileged user", mlog.Field("user", mox.Conf.Static.User), mlog.Field("uid", mox.Conf.Static.UID), mlog.Field("gid", mox.Conf.Static.GID), mlog.Field("pid", os.Getpid())) mox.RestorePassedFiles() mox.MustLoadConfig(true, checkACMEHosts) + log.Print("starting as unprivileged user", mlog.Field("user", mox.Conf.Static.User), mlog.Field("uid", mox.Conf.Static.UID), mlog.Field("gid", mox.Conf.Static.GID), mlog.Field("pid", os.Getpid())) } syscall.Umask(syscall.Umask(007) | 007)