Check-in Number: 28429
Date: 2011-Nov-23 15:47:06 (local)
2011-Nov-23 21:47:06 (UTC)
User:Dan Bradley
Branch:
Comment:
Fixed schedd crash when writing xml user-log with % sign in hold reason. #2660
Tickets:
#2660 % sign in hold message causes crash when writing xml user log
Inspections:
Check-ins:
Files:
src/condor_utils/write_user_log.cpp      d3dd5180 -> 905fc37c    

[Click for alternate file diff view via GitHub]

diff --git a/src/condor_utils/write_user_log.cpp b/src/condor_utils/write_user_log.cpp
index 080b037fc884b954b499fff3a8189b75cb1786b6..1b4d28e09a0cde303147e249152f5cf8289bc488 100644
a/​src/​condor_utils/​write_user_log.​cppb/​src/​condor_utils/​write_user_log.​cpp
1172 »   ​»   ​»   ​»   ​»   ​»   ​·​"WriteUserLog·​Failed·​to·​convert·​event·​type·​#·​%d·​to·​XML.​\n",​1172 »   ​»   ​»   ​»   ​»   ​»   ​·​"WriteUserLog·​Failed·​to·​convert·​event·​type·​#·​%d·​to·​XML.​\n",​
1173 »   ​»   ​»   ​»   ​»   ​»   ​·​event->eventNumber)​;​1173 »   ​»   ​»   ​»   ​»   ​»   ​·​event->eventNumber)​;​
1174 »   ​»   ​»   ​}1174 »   ​»   ​»   ​}
1175 »   ​»   ​»   ​if·​(fprintf·​(·​fp,​·​adXML.​Value()​)​·​<·​0)​·​{1175 »   ​»   ​»   ​if·​(fprintf·​(·​fp,​·"%s",​·​adXML.​Value()​)​·​<·​0)​·​{
1176 »   ​»   ​»   ​»   ​success·​=·​false;​1176 »   ​»   ​»   ​»   ​success·​=·​false;​
1177 »   ​»   ​»   ​}·​else·​{1177 »   ​»   ​»   ​}·​else·​{
1178 »   ​»   ​»   ​»   ​success·​=·​true;​1178 »   ​»   ​»   ​»   ​success·​=·​true;​