Browse Source

no need for endpwent(0 here either

OPENBSD_3_8
henning 19 years ago
parent
commit
8f835e4902
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/usr.sbin/ntpd/ntp.c

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

@ -1,4 +1,4 @@
/* $OpenBSD: ntp.c,v 1.58 2005/05/03 05:44:35 djm Exp $ */
/* $OpenBSD: ntp.c,v 1.59 2005/05/23 22:46:43 henning Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -122,7 +122,6 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *nconf)
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid)) setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("can't drop privileges"); fatal("can't drop privileges");
endpwent();
endservent(); endservent();
signal(SIGTERM, ntp_sighdlr); signal(SIGTERM, ntp_sighdlr);


Loading…
Cancel
Save