diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-04-28 14:54:06 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-04-28 14:54:06 +0200 |
commit | 4950877425af884a35ecbc272a6b77a5e5602413 (patch) | |
tree | 11b6404087d3313d4d5e2b8f81796b09dbd91b96 /nslcd/service.c | |
parent | afadc8626e84a3ebd0a83f7f6e8b84b5511d50a5 (diff) |
only log protocol name if it is present (6a92621 and 402d3f3 from 0.9)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.8@1943 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/service.c')
-rw-r--r-- | nslcd/service.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nslcd/service.c b/nslcd/service.c index 330bfb1..09510d7 100644 --- a/nslcd/service.c +++ b/nslcd/service.c @@ -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 @@ NSLCD_HANDLE( 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 @@ NSLCD_HANDLE( 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) |