X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Frename.cpp;h=ec6fca53898e38e4c00c490450417cee3cd398a5;hb=26f336769af8dd5c48c2c0241cd3fbfc50a3c65e;hp=45b1b45e861d339d77c4352fc14ae8a5cee69fc9;hpb=150b11e953c4fd6cfc8beca1d2af124db8cf734e;p=features.git diff --git a/src/support/rename.cpp b/src/support/rename.cpp index 45b1b45e86..ec6fca5389 100644 --- a/src/support/rename.cpp +++ b/src/support/rename.cpp @@ -25,12 +25,13 @@ using std::string; bool rename(FileName const & from, FileName const & to) { - if (::rename(from.toFilesystemEncoding().c_str(), to.toFilesystemEncoding().c_str()) == -1) + if (::rename(from.toFilesystemEncoding().c_str(), to.toFilesystemEncoding().c_str()) == -1) { if (copy(from, to)) { unlink(from); return true; } else return false; + } return true; }