|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: ntpd.c,v 1.111 2016/09/26 17:17:01 rzalamena Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: ntpd.c,v 1.112 2016/12/01 16:24:48 mestre Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
|
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> |
|
@ -118,9 +118,6 @@ main(int argc, char *argv[]) |
|
|
u_int pfd_elms = 0, new_cnt; |
|
|
u_int pfd_elms = 0, new_cnt; |
|
|
struct constraint *cstr; |
|
|
struct constraint *cstr; |
|
|
struct passwd *pw; |
|
|
struct passwd *pw; |
|
|
const char *pw_dir; |
|
|
|
|
|
uid_t pw_uid; |
|
|
|
|
|
gid_t pw_gid; |
|
|
|
|
|
void *newp; |
|
|
void *newp; |
|
|
int argc0 = argc; |
|
|
int argc0 = argc; |
|
|
char **argv0 = argv; |
|
|
char **argv0 = argv; |
|
@ -206,10 +203,6 @@ main(int argc, char *argv[]) |
|
|
fatalx("%s: process '%s' failed", __func__, pname); |
|
|
fatalx("%s: process '%s' failed", __func__, pname); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
pw_dir = strdup(pw->pw_dir); |
|
|
|
|
|
pw_uid = pw->pw_uid; |
|
|
|
|
|
pw_gid = pw->pw_gid; |
|
|
|
|
|
|
|
|
|
|
|
if (setpriority(PRIO_PROCESS, 0, -20) == -1) |
|
|
if (setpriority(PRIO_PROCESS, 0, -20) == -1) |
|
|
warn("can't set priority"); |
|
|
warn("can't set priority"); |
|
|
|
|
|
|
|
|