From ffc8b4ac8d418b44da7206469ae076398e12b7ac Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 5 Nov 2018 08:16:23 +0100 Subject: [PATCH] nss_wins: Set client process name Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- nsswitch/wins.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nsswitch/wins.c b/nsswitch/wins.c index 72055f099b6..ddbbb03d844 100644 --- a/nsswitch/wins.c +++ b/nsswitch/wins.c @@ -69,6 +69,7 @@ static char *lookup_byname_backend(const char *name) return NULL; } + wbcSetClientProcessName("nss_wins"); result = wbcResolveWinsByName(name, &ip); if (result != WBC_ERR_SUCCESS) { return NULL; @@ -89,6 +90,7 @@ static char *lookup_byaddr_backend(const char *ip) wbcErr result; char *name = NULL; + wbcSetClientProcessName("nss_wins"); result = wbcResolveWinsByIP(ip, &name); if (result != WBC_ERR_SUCCESS) { return NULL;