if the bib file is in a non-readable directory (bug 2782).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14807
a592a061-630c-0410-9148-
cb99ea01b6c8
#include "frontends/controllers/biblio.h"
+#include "support/fs_extras.h"
#include "support/lstrings.h"
#include <boost/filesystem/operations.hpp>
for (vector<string>::const_iterator it = bibfilesCache.begin();
it != bibfilesCache.end(); ++ it) {
string const f = *it;
- if (!fs::exists(f)) {
- lyxerr << "Couldn't find bibtex file " << f << endl;
+ if (!fs::exists(f) || !fs::is_readable(fs::path(f).branch_path())) {
+ lyxerr << "Couldn't find or read bibtex file " << f << endl;
changed = true;
} else if (bibfileStatus[f] != fs::last_write_time(f)) {
changed = true;