+2005-05-11 Lars Gullik Bjonnes <larsbj@gullik.net>
+
+ * buffer.C (save): check if destination is writable before trying
+ to copy a file
+
2005-05-11 Martin Vermeer <martin.vermeer@hut.fi>
* BufferView_pimpl.C (update): fix processEvents -caused update
2005-05-11 Martin Vermeer <martin.vermeer@hut.fi>
* BufferView_pimpl.C (update): fix processEvents -caused update
// good enough. (Lgb)
// But to use this we need fs::copy_file to actually do a copy,
// even when the target file exists. (Lgb)
// good enough. (Lgb)
// But to use this we need fs::copy_file to actually do a copy,
// even when the target file exists. (Lgb)
- if (fs::exists(fileName())) {
+ if (fs::exists(fileName()) && fs::is_writable(fs::path(fileName()).branch_path())) {
//try {
fs::copy_file(fileName(), s, false);
//}
//try {
fs::copy_file(fileName(), s, false);
//}