BIND 10 #1621: Maximum versions incorrectly set in logger_example.cc
BIND 10 Development
do-not-reply at isc.org
Mon Jan 23 17:05:58 UTC 2012
#1621: Maximum versions incorrectly set in logger_example.cc
--------------------------------+-----------------------------------------
Reporter: stephen | Owner:
Type: defect | Status: new
Priority: trivial | Milestone: New Tasks
Component: logging | Keywords:
Sensitive: 0 | Defect Severity: N/A
Sub-Project: DNS | Feature Depending on Ticket:
Estimated Difficulty: 0 | Add Hours to Ticket: 0
Total Hours: 0 | Internal?: 0
--------------------------------+-----------------------------------------
logger_example.cc - a test program for logging - incorrectly sets the
wrong option variable when the maximum number of versions of an output
file is specified. The correction is:
{{{
--- a/src/lib/log/tests/logger_example.cc
+++ b/src/lib/log/tests/logger_example.cc
@@ -215,7 +215,7 @@ int main(int argc, char** argv) {
return (1);
}
try {
- cur_opt.maxsize = boost::lexical_cast<unsigned
int>(optarg);
+ cur_opt.maxver = boost::lexical_cast<unsigned
int>(optarg);
} catch (boost::bad_lexical_cast&) {
std::cerr << "Maximum version (-m) argument must be a
positive
"integer\n";
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/1621>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list