[vhffs-dev] [1976] using File::Copy::move instead of rename, because it works across file system boundaries |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1976
Author: gradator
Date: 2012-01-30 22:53:08 +0100 (Mon, 30 Jan 2012)
Log Message:
-----------
using File::Copy::move instead of rename, because it works across file system boundaries
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Robots/Mysql.pm
Modified: trunk/vhffs-api/src/Vhffs/Robots/Mysql.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Mysql.pm 2012-01-30 00:16:56 UTC (rev 1975)
+++ trunk/vhffs-api/src/Vhffs/Robots/Mysql.pm 2012-01-30 21:53:08 UTC (rev 1976)
@@ -200,7 +200,8 @@
chmod( 0440, $tmpfile );
chown( $db->get_owner_uid , $db->get_owner_gid , $tmpfile );
- rename( $tmpfile , $file );
+ require File::Copy;
+ File::Copy::move( $tmpfile , $file );
}
1;