diff options
-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) |