X-Git-Url: http://www.andromeda.nl/gitweb/?a=blobdiff_plain;f=src%2Fgcm_input%2Fsyslog_cooker.cpp;h=2547c6dcb02805fd678c7a0e478c17ae84458291;hb=a3ae6b823dd5d4feecd09cc2794719a839353a40;hp=5e2073280d8f6ad5cc675da058de155e788a9bf6;hpb=3d6c9cb6d9bd430049954098b89423837b4ae7ae;p=gnucomo.git diff --git a/src/gcm_input/syslog_cooker.cpp b/src/gcm_input/syslog_cooker.cpp index 5e20732..2547c6d 100644 --- a/src/gcm_input/syslog_cooker.cpp +++ b/src/gcm_input/syslog_cooker.cpp @@ -8,7 +8,7 @@ *********************** ** FILE NAME : syslog_cooker.cpp ** SYSTEM NAME : -** VERSION NUMBER : $Revision: 1.2 $ +** VERSION NUMBER : $Revision: 1.3 $ ** ** DESCRIPTION : Cooks system log lines ** @@ -26,7 +26,10 @@ /***************************** $Log: syslog_cooker.cpp,v $ - Revision 1.2 2004-01-13 12:20:12 arjen + Revision 1.3 2007-01-11 13:51:40 arjen + The '-' character is part of the service name. + + Revision 1.2 2004/01/13 12:20:12 arjen Accept '/' and '.' characters within the service name Revision 1.1 2003/08/11 16:56:16 arjen @@ -41,7 +44,7 @@ *****************************/ -/* static const char *RCSID = "$Id: syslog_cooker.cpp,v 1.2 2004-01-13 12:20:12 arjen Exp $"; */ +/* static const char *RCSID = "$Id: syslog_cooker.cpp,v 1.3 2007-01-11 13:51:40 arjen Exp $"; */ #include @@ -89,7 +92,7 @@ bool syslog_cooker::cook_this(String logline, UTC arrival) // Extract the service rest <<= i + 1; - for (i = 0; (isalpha(rest[i]) || rest[i] == '/' || rest[i] == '.') && i < ~rest; i++); + for (i = 0; (isalpha(rest[i]) || rest[i] == '/' || rest[i] == '.' || rest[i] == '-') && i < ~rest; i++); srv = rest(0, i); return true;