File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,10 @@ void mainthread()
342
342
343
343
#ifndef WIN32
344
344
345
- doSecPoll (true ); // this must be BEFORE chroot
345
+ try {
346
+ doSecPoll (true ); // this must be BEFORE chroot
347
+ }
348
+ catch (...) {}
346
349
347
350
if (!::arg ()[" chroot" ].empty ()) {
348
351
if (::arg ().mustDo (" master" ) || ::arg ().mustDo (" slave" ))
Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ void doSecPoll(bool first)
125
125
struct timeval now;
126
126
gettimeofday (&now, 0 );
127
127
128
- string query = " auth-" + string (PACKAGEVERSION) +" .security-status." +::arg ()[" security-poll-suffix" ];
128
+ string version = " auth-" + string (PACKAGEVERSION);
129
+ string query = version.substr (0 , 63 ) +" .security-status." +::arg ()[" security-poll-suffix" ];
129
130
130
131
if (*query.rbegin ()!=' .' )
131
132
query+=' .' ;
You can’t perform that action at this time.
0 commit comments