On Thu, 8 Jun 2006 10:45:14 -0400, Justin Pryzby
<[EMAIL PROTECTED]> wrote:
> +unlink("$dbfile.old") if ( -e "$dbfile.old" ) ;
> +link("$dbfile", "$dbfile.old") if ( -e $dbfile ) ;
Erm, shouldn't you take care to leave .old if no new $dbfile exists?
+if (-e $dbfile) {
+ unlink("$dbfile.old") i
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.0 -0500
+++ /tmp/update-dlocatedb 2006-06-01 10:46:23.0 -0400
@@ -24,5 +24,6 @@
}
close FRCODE ;
-rename("$dbfile
2 matches
Mail list logo