summaryrefslogtreecommitdiff
path: root/indra/newview/llcommandlineparser.cpp
diff options
context:
space:
mode:
authorBoroondas Gupte (original fix by Aleric Inglewood) <hg@boroon.dasgupta.ch>2010-10-16 18:24:52 +0200
committerBoroondas Gupte (original fix by Aleric Inglewood) <hg@boroon.dasgupta.ch>2010-10-16 18:24:52 +0200
commit0f1d345e187c031ead1199c29674e93d922496cc (patch)
tree2eb88ad5c90a379bc7cba1bd712de60793b565c2 /indra/newview/llcommandlineparser.cpp
parent04611efae8a3291ceba8a29dd920bdae0d404830 (diff)
VWR-23459 FIXED Viewer compiled against Boost-1.42 crashes when certain command line options are given
used Aleric's SG2 changeset from http://svn.secondlife.com/trac/linden/changeset/3600 patching file doc/contributions.txt Hunk #1 succeeded at 73 with fuzz 2. patching file indra/newview/llcommandlineparser.cpp Hunk #1 succeeded at 268 with fuzz 1 (offset -8 lines). Edited doc/contributions.txt to create an entry for Aleric and moved the issue ID there (patch wasn't able to place it at the right position, lacking any context).
Diffstat (limited to 'indra/newview/llcommandlineparser.cpp')
-rw-r--r--indra/newview/llcommandlineparser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llcommandlineparser.cpp b/indra/newview/llcommandlineparser.cpp
index 2f99ca1247..c7359a8865 100644
--- a/indra/newview/llcommandlineparser.cpp
+++ b/indra/newview/llcommandlineparser.cpp
@@ -267,7 +267,11 @@ bool parseAndStoreResults(po::command_line_parser& clp)
{
clp.options(gOptionsDesc);
clp.positional(gPositionalOptions);
- clp.style(po::command_line_style::default_style
+ // SNOW-626: Boost 1.42 erroneously added allow_guessing to the default style
+ // (see http://groups.google.com/group/boost-list/browse_thread/thread/545d7bf98ff9bb16?fwc=2&pli=1)
+ // Remove allow_guessing from the default style, because that is not allowed
+ // when we have options that are a prefix of other options (aka, --help and --helperuri).
+ clp.style((po::command_line_style::default_style & ~po::command_line_style::allow_guessing)
| po::command_line_style::allow_long_disguise);
po::basic_parsed_options<char> opts = clp.run();
po::store(opts, gVariableMap);