summaryrefslogtreecommitdiffstats
path: root/proxy/src/client
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-03-21 12:28:02 -0400
committerSimo Sorce <simo@redhat.com>2013-03-22 11:34:37 -0400
commite9623f5f05053f215c71dbf37d034ae98f1f1c36 (patch)
tree8bd8a656f726daa1e4cf1b0c2d8676f60c266be3 /proxy/src/client
parent97102f1e7e19f3ea869335afbdbeba619042d694 (diff)
downloadgss-proxy-e9623f5f05053f215c71dbf37d034ae98f1f1c36.tar.gz
gss-proxy-e9623f5f05053f215c71dbf37d034ae98f1f1c36.tar.xz
gss-proxy-e9623f5f05053f215c71dbf37d034ae98f1f1c36.zip
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.
Diffstat (limited to 'proxy/src/client')
-rw-r--r--proxy/src/client/gpm_common.c6
1 files changed, 1 insertions, 5 deletions
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;
}