From: Jeffrey Altman Date: Thu, 4 May 2006 05:56:24 +0000 (+0000) Subject: STABLE14-viced-hcps-logging-20060504 X-Git-Tag: openafs-stable-1_4_1b~11 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6fd794a022a9752d09b7c8ca4dfd49bea696a69c;p=packages%2Fo%2Fopenafs.git STABLE14-viced-hcps-logging-20060504 log whenever a client host does not have an hcps value. log the host by dotted ip-addr and port number (cherry picked from commit ea3ed375e8f706456afddd23bff5ebf906565d92) --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 47c7e7948..98a0931e6 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -655,10 +655,13 @@ GetRights(struct client *client, struct acl_accessList *ACL, #endif /* AFS_PTHREAD_ENV */ } - if (client->host->hcps.prlist_len && !client->host->hcps.prlist_val) { + if (!client->host->hcps.prlist_len || !client->host->hcps.prlist_val) { + char hoststr[16]; ViceLog(0, - ("CheckRights: len=%u, for host=0x%x\n", - client->host->hcps.prlist_len, client->host->host)); + ("CheckRights: len=%u, for host=%s:%d\n", + client->host->hcps.prlist_len, + afs_inet_ntoa_r(client->host->host, hoststr), + ntohs(client->host->port))); } else acl_CheckRights(ACL, &client->host->hcps, &hrights); H_UNLOCK;