diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-03-22 11:31:48 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-03-24 22:40:39 +0100 |
commit | 402d3f30e1ecac4f2b5c5988b6da6587e2377817 (patch) | |
tree | a72094f5736e90799aaf17172184fa4eeef17d12 /nslcd | |
parent | f21efd66c2c634f8f5e3b151e04f9da459ff5f4e (diff) |
fix service request logging
Diffstat (limited to 'nslcd')
-rw-r--r-- | nslcd/service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nslcd/service.c b/nslcd/service.c index de0e019..187bce0 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 @@ -222,7 +222,7 @@ NSLCD_HANDLE( char filter[4096]; READ_INT32(fp, number); READ_STRING(fp, protocol); - log_setrequest("service=%lu/%s", (unsigned long int)number, + log_setrequest("service=%lu%s%s", (unsigned long int)number, *protocol != '\0' ? "/" : "", protocol);, mkfilter_service_bynumber(number, protocol, filter, sizeof(filter)), write_service(fp, entry, NULL, protocol) |