diff options
author | flz <flz@FreeBSD.org> | 2006-07-13 03:04:53 +0800 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2006-07-13 03:04:53 +0800 |
commit | ff9f3b61c4ffbee7e03a6ee7229df31c42e52040 (patch) | |
tree | 4828b9db69d475cd5216a47bb80cbbb55f589a6c | |
parent | d4e5507288b3acbf6db3be7da5183b6a380fc5f8 (diff) | |
download | freebsd-ports-gnome-ff9f3b61c4ffbee7e03a6ee7229df31c42e52040.tar.gz freebsd-ports-gnome-ff9f3b61c4ffbee7e03a6ee7229df31c42e52040.tar.zst freebsd-ports-gnome-ff9f3b61c4ffbee7e03a6ee7229df31c42e52040.zip |
Fix problem with getopt.
Reported by: Charles Clark <cmc@stegosaur.us>
-rw-r--r-- | net-p2p/rtorrent/files/stable-src_option__parser.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net-p2p/rtorrent/files/stable-src_option__parser.cc b/net-p2p/rtorrent/files/stable-src_option__parser.cc new file mode 100644 index 000000000000..fe21794d59a6 --- /dev/null +++ b/net-p2p/rtorrent/files/stable-src_option__parser.cc @@ -0,0 +1,12 @@ +--- src/option_parser.cc.orig Wed Jul 12 10:31:59 2006 ++++ src/option_parser.cc Wed Jul 12 10:32:15 2006 +@@ -77,9 +77,6 @@ + int c; + std::string optString = create_optstring(); + +- optind = 0; +- opterr = 0; +- + while ((c = getopt(argc, argv, optString.c_str())) != -1) + if (c == '?') + throw std::runtime_error("Invalid/unknown option flag \"-" + std::string(1, (char)optopt) + "\". See rtorrent -h for more information."); |