summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2005-07-11 08:05:35 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2005-07-11 08:05:35 +0000
commitff8eafeb9b41008615e1335038d0be885d48893a (patch)
tree23189f70ff27dfa86cd8bffb4ff19936a9dedaf8
parent640e0a571be67f304c3012b80460817fd86bf4da (diff)
Print privsep user and dir when in debug mode; ok henning@
-rw-r--r--usr.sbin/ntpd/ntp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index c3717b8fd4f..7fcc5c640b0 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/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 <henning@openbsd.org>
@@ -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)