diff options
Diffstat (limited to 'server/responder/nss')
-rw-r--r-- | server/responder/nss/nsssrv.c | 5 | ||||
-rw-r--r-- | server/responder/nss/nsssrv.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/server/responder/nss/nsssrv.c b/server/responder/nss/nsssrv.c index 248b8a1e..a26f5eda 100644 --- a/server/responder/nss/nsssrv.c +++ b/server/responder/nss/nsssrv.c @@ -330,6 +330,9 @@ static int nss_sbus_init(struct nss_ctx *nctx) static int set_unix_socket(struct nss_ctx *nctx) { struct sockaddr_un addr; + +/* for future use */ +#if 0 char *default_pipe; int ret; @@ -346,6 +349,8 @@ static int set_unix_socket(struct nss_ctx *nctx) return ret; } talloc_free(default_pipe); +#endif + nctx->sock_name = SSS_NSS_SOCKET_NAME; nctx->lfd = socket(AF_UNIX, SOCK_STREAM, 0); if (nctx->lfd == -1) { diff --git a/server/responder/nss/nsssrv.h b/server/responder/nss/nsssrv.h index b1f1ff7d..949961a4 100644 --- a/server/responder/nss/nsssrv.h +++ b/server/responder/nss/nsssrv.h @@ -57,7 +57,7 @@ struct nss_ctx { int lfd; struct sysdb_ctx *sysdb; struct confdb_ctx *cdb; - char *sock_name; + const char *sock_name; struct service_sbus_ctx *ss_ctx; struct service_sbus_ctx *dp_ctx; struct btreemap *domain_map; |