aboutsummaryrefslogtreecommitdiff
path: root/www/aria/files/patch-src__ProxyList.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/aria/files/patch-src__ProxyList.cc')
-rw-r--r--www/aria/files/patch-src__ProxyList.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/www/aria/files/patch-src__ProxyList.cc b/www/aria/files/patch-src__ProxyList.cc
new file mode 100644
index 000000000000..4ba2539c4877
--- /dev/null
+++ b/www/aria/files/patch-src__ProxyList.cc
@@ -0,0 +1,17 @@
+--- src/ProxyList.cc.orig Sun Nov 4 19:18:08 2001
++++ src/ProxyList.cc Thu Apr 8 22:41:14 2004
+@@ -130,12 +130,12 @@
+ bool ProxyList::Read_proxy_list(const string& file_proxy_list)
+ {
+ ifstream infile(file_proxy_list.c_str(), ios::in);//ios::skipws|ios::in);
+- if(infile.bad() || infile.eof()) return false;
++ if(!infile.is_open() || infile.bad() || infile.eof()) return false;
+
+ while(!infile.eof()) {
+ string line;
+ getline(infile, line, '\n');
+- if(infile.bad()) return false;
++ if(!infile.is_open() || infile.bad()) return false;
+ line = Remove_white(line);
+ if(line.empty() || line.at(0) == '#') continue;
+ string server_name = Token_splitter(line, ": \t");