kcm: Actually implement --socket-path option
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
RCSID("$Id$");
|
RCSID("$Id$");
|
||||||
|
|
||||||
krb5_context kcm_context = NULL;
|
krb5_context kcm_context = NULL;
|
||||||
|
extern const char *socket_path;
|
||||||
|
|
||||||
const char *service_name = "org.h5l.kcm";
|
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");
|
daemon_child = roken_detach_prep(argc, argv, "--daemon-child");
|
||||||
rk_pidfile(NULL);
|
rk_pidfile(NULL);
|
||||||
|
|
||||||
|
if (socket_path)
|
||||||
|
setenv("HEIM_IPC_DIR", socket_path, 1);
|
||||||
|
|
||||||
if (launchd_flag) {
|
if (launchd_flag) {
|
||||||
heim_sipc mach;
|
heim_sipc mach;
|
||||||
ret = heim_sipc_launchd_mach_init(service_name, kcm_service, NULL, &mach);
|
ret = heim_sipc_launchd_mach_init(service_name, kcm_service, NULL, &mach);
|
||||||
|
Reference in New Issue
Block a user