summaryrefslogtreecommitdiff
path: root/quotes.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-25 02:39:07 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-25 02:39:07 -0400
commitfbad0421789856debcacf4d7138e39b08908a077 (patch)
tree9c2a730e8b8edae162ddf26b57d8490ebb63b778 /quotes.cc
parentf84f8dbd5de4b50a689e2daa4a915a0da7c4d329 (diff)
downloadfork-ledger-fbad0421789856debcacf4d7138e39b08908a077.tar.gz
fork-ledger-fbad0421789856debcacf4d7138e39b08908a077.tar.bz2
fork-ledger-fbad0421789856debcacf4d7138e39b08908a077.zip
can't reliably use `access' and W_OK
Diffstat (limited to 'quotes.cc')
-rw-r--r--quotes.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/quotes.cc b/quotes.cc
index 60e09117..4b1596ea 100644
--- a/quotes.cc
+++ b/quotes.cc
@@ -57,7 +57,7 @@ void quotes_by_script::operator()(commodity_t& commodity,
price.parse(buf);
commodity.add_price(now, price);
- if (price && ! price_db.empty() && access(price_db.c_str(), W_OK) != -1) {
+ if (price && ! price_db.empty()) {
char buf[128];
strftime(buf, 127, "%Y/%m/%d %H:%M:%S", localtime(&now));
ofstream database(price_db.c_str(), ios_base::out | ios_base::app);