nss-pam-ldapd commit: r1943 - nss-pam-ldapd-0.8/nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1943 - nss-pam-ldapd-0.8/nslcd
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1943 - nss-pam-ldapd-0.8/nslcd
- Date: Sun, 28 Apr 2013 14:54:06 +0200 (CEST)
Author: arthur
Date: Sun Apr 28 14:54:06 2013
New Revision: 1943
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1943&view=revision
Log:
only log protocol name if it is present (6a92621 and 402d3f3 from 0.9)
Modified:
nss-pam-ldapd-0.8/nslcd/service.c
Modified: nss-pam-ldapd-0.8/nslcd/service.c
==============================================================================
--- nss-pam-ldapd-0.8/nslcd/service.c Sun Apr 28 14:35:52 2013 (r1942)
+++ nss-pam-ldapd-0.8/nslcd/service.c Sun Apr 28 14:54:06 2013 (r1943)
@@ -5,7 +5,7 @@
Copyright (C) 1997-2005 Luke Howard
Copyright (C) 2006 West Consulting
- Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Arthur de Jong
+ Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012, 2013 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -218,7 +218,7 @@
char filter[4096];
READ_STRING(fp,name);
READ_STRING(fp,protocol);
- log_setrequest("service=\"%s\"/%s",name,protocol);,
+ log_setrequest("service=\"%s\"%s%s",name,*protocol!='\0'?"/":"",protocol);,
NSLCD_ACTION_SERVICE_BYNAME,
mkfilter_service_byname(name,protocol,filter,sizeof(filter)),
write_service(fp,entry,name,protocol)
@@ -231,7 +231,7 @@
char filter[4096];
READ_INT32(fp,number);
READ_STRING(fp,protocol);
- log_setrequest("service=%d/%s",number,protocol);,
+ log_setrequest("service=%lu%s%s",(unsigned long
int)number,*protocol!='\0'?"/":"",protocol);,
NSLCD_ACTION_SERVICE_BYNUMBER,
mkfilter_service_bynumber(number,protocol,filter,sizeof(filter)),
write_service(fp,entry,NULL,protocol)
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd commit: r1943 - nss-pam-ldapd-0.8/nslcd,
Commits of the nss-pam-ldapd project