From e9623f5f05053f215c71dbf37d034ae98f1f1c36 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 21 Mar 2013 12:28:02 -0400 Subject: Make socket path a configure option The kernel uses the fixed path named /var/run/gssproxy.sock Make this default a configure time option and default to it. Also remove the option to change the socket at configure time, neither the kernel nor proxymech.so can cope with a change anyway. --- proxy/src/client/gpm_common.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'proxy/src/client') diff --git a/proxy/src/client/gpm_common.c b/proxy/src/client/gpm_common.c index 3d062b2..d3dbaff 100644 --- a/proxy/src/client/gpm_common.c +++ b/proxy/src/client/gpm_common.c @@ -63,15 +63,11 @@ static void gpm_init_once(void) pthread_mutexattr_destroy(&attr); } -#define GP_SOCKET_NAME "gssproxy.socket" - static int get_pipe_name(struct gpm_ctx *gpmctx, char *name) { int ret; - /* TODO: get socket name from config file */ - - ret = snprintf(name, PATH_MAX, "%s/%s", PIPE_PATH, GP_SOCKET_NAME); + ret = snprintf(name, PATH_MAX, "%s", GP_SOCKET_NAME); if (ret < 0 || ret >= PATH_MAX) { return ENAMETOOLONG; } -- cgit