Browse Source

endservent() not needed here; ok henning@

OPENBSD_4_5
stevesk 16 years ago
parent
commit
7599b90b0a
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/usr.sbin/ntpd/ntp_dns.c

+ 1
- 2
src/usr.sbin/ntpd/ntp_dns.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: ntp_dns.c,v 1.1 2008/09/12 10:46:09 henning Exp $ */
/* $OpenBSD: ntp_dns.c,v 1.2 2009/02/10 16:41:39 stevesk Exp $ */
/*
* Copyright (c) 2003-2008 Henning Brauer <henning@openbsd.org>
@ -75,7 +75,6 @@ ntp_dns(int pipe_ntp[2], struct ntpd_conf *nconf, struct passwd *pw)
setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) ||
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("can't drop privileges");
endservent();
signal(SIGTERM, sighdlr_dns);
signal(SIGINT, sighdlr_dns);


Loading…
Cancel
Save