summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/main.cc b/main.cc
index 9ce6fa0d..8e827212 100644
--- a/main.cc
+++ b/main.cc
@@ -305,13 +305,8 @@ int parse_and_report(int argc, char * argv[], char * envp[])
if (config.use_cache && config.cache_dirty &&
! config.cache_file.empty()) {
- if (access(config.cache_file.c_str(), W_OK) == -1) {
- std::cerr << "Warning: Cannot update cache file '"
- << config.cache_file << "'" << std::endl;
- } else {
- std::ofstream stream(config.cache_file.c_str());
- write_binary_journal(stream, journal.get(), &journal->sources);
- }
+ std::ofstream stream(config.cache_file.c_str());
+ write_binary_journal(stream, journal.get(), &journal->sources);
}
return 0;