* syscalls.cc (rename): Fix condition when to start a transaction.
This commit is contained in:
parent
c211f8eb24
commit
2f33b79950
@ -1,3 +1,7 @@
|
|||||||
|
2008-05-20 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* syscalls.cc (rename): Fix condition when to start a transaction.
|
||||||
|
|
||||||
2008-05-20 Corinna Vinschen <corinna@vinschen.de>
|
2008-05-20 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* path.cc (path_conv::check): Free wide_path and normalized_path if
|
* path.cc (path_conv::check): Free wide_path and normalized_path if
|
||||||
|
@ -1718,7 +1718,8 @@ rename (const char *oldpath, const char *newpath)
|
|||||||
have to start the transaction here, if necessary. */
|
have to start the transaction here, if necessary. */
|
||||||
if (wincap.has_transactions ()
|
if (wincap.has_transactions ()
|
||||||
&& (dstpc->fs_flags () & FILE_SUPPORTS_TRANSACTIONS)
|
&& (dstpc->fs_flags () & FILE_SUPPORTS_TRANSACTIONS)
|
||||||
&& (dstpc->isdir () || dstpc->has_attribute (FILE_ATTRIBUTE_READONLY)))
|
&& (dstpc->isdir ()
|
||||||
|
|| (!removepc && dstpc->has_attribute (FILE_ATTRIBUTE_READONLY))))
|
||||||
start_transaction (old_trans, trans);
|
start_transaction (old_trans, trans);
|
||||||
|
|
||||||
/* DELETE is required to rename a file. */
|
/* DELETE is required to rename a file. */
|
||||||
|
Loading…
Reference in New Issue
Block a user