From c6fbdd6b60adecb06c7270a8b05d6ed75b67f89a Mon Sep 17 00:00:00 2001 From: dtucker <> Date: Mon, 11 Jul 2005 08:05:34 +0000 Subject: [PATCH] Print privsep user and dir when in debug mode; ok henning@ --- src/usr.sbin/ntpd/ntp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c index c3717b8f..7fcc5c64 100644 --- a/src/usr.sbin/ntpd/ntp.c +++ b/src/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.62 2005/07/05 10:09:12 dtucker Exp $ */ +/* $OpenBSD: ntp.c,v 1.63 2005/07/11 08:05:34 dtucker Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -96,6 +96,7 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *nconf) if ((nullfd = open(_PATH_DEVNULL, O_RDWR, 0)) == -1) fatal(NULL); + log_debug("using privsep user '%s' dir '%s'", pw->pw_name, pw->pw_dir); if (stat(pw->pw_dir, &stb) == -1) fatal("stat"); if (stb.st_uid != 0 || (stb.st_mode & (S_IWGRP|S_IWOTH)) != 0)