Package: dlocate
Version: 0.5-0.2
Tags: patch
Included is a patch to make the rename work atomically.
--- /usr/sbin/update-dlocatedb 2005-11-25 11:02:24.000000000 -0500
+++ /tmp/update-dlocatedb 2006-06-01 10:46:23.000000000 -0400
@@ -24,5 +24,6 @@
}
close FRCODE ;
-rename("$dbfile","$dbfile.old") if ( -e $dbfile ) ;
+unlink("$dbfile.old") if ( -e "$dbfile.old" ) ;
+link("$dbfile", "$dbfile.old") if ( -e $dbfile ) ;
rename("$dbfile.new","$dbfile") ;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]