From 37a1f2fbb6e05053098a5f1af5eff16ac523dd35 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 1 Jun 2017 18:33:08 +0200 Subject: lib: privs: make uid/gid accessible before setuid This splits off privs_preinit(), which does the lookups for user and group IDs. This is so the init code can create state directories while still running as root. Signed-off-by: David Lamparter --- ospfclient/ospfclient.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ospfclient/ospfclient.c') diff --git a/ospfclient/ospfclient.c b/ospfclient/ospfclient.c index 5713105f42..03b543a786 100644 --- a/ospfclient/ospfclient.c +++ b/ospfclient/ospfclient.c @@ -307,6 +307,7 @@ int main(int argc, char *argv[]) } /* Initialization */ + zprivs_preinit(&ospfd_privs); zprivs_init(&ospfd_privs); master = thread_master_create(NULL); -- cgit v1.2.3