kcm: Actually implement --socket-path option

This commit is contained in:
Nicolas Williams
2021-03-29 23:46:16 -05:00
parent 9d9fd7f2fa
commit e2e0dc331e

View File

@@ -36,6 +36,7 @@
RCSID("$Id$");
krb5_context kcm_context = NULL;
extern const char *socket_path;
const char *service_name = "org.h5l.kcm";
@@ -90,6 +91,9 @@ main(int argc, char **argv)
daemon_child = roken_detach_prep(argc, argv, "--daemon-child");
rk_pidfile(NULL);
if (socket_path)
setenv("HEIM_IPC_DIR", socket_path, 1);
if (launchd_flag) {
heim_sipc mach;
ret = heim_sipc_launchd_mach_init(service_name, kcm_service, NULL, &mach);