[Pkg-freeipa-devel] Bug#905184: Bug#905184: upgrade of 389-ds-base fails if /var/lib/dirsrv is on different partition as /etc

Jan Kowalsky jankow at datenkollektiv.net
Mon Sep 3 09:16:07 BST 2018


solves the issue:

--- updates.orig/60upgradeconfigfiles.pl	2018-09-03 09:58:45.911804203 +0200
+++ updates/60upgradeconfigfiles.pl	2018-09-03 09:59:36.420699451 +0200
@@ -31,7 +31,7 @@
         next if (! -f $oldname); # does not exist - skip - already
(re)moved
         my $newname = "$bakdir/$file";
         $! = 0; # clear
-        rename $oldname, $newname;
+        move $oldname, $newname;
         if ($!) {
             push @errs, ["error_renaming_config", $oldname, $newname, $!];
         }
@@ -57,7 +57,7 @@
             next if (! -f $oldname); # does not exist - not backed up
             my $newname = $inf->{slapd}->{config_dir} . "/" . $file;
             next if (-f $newname); # not removed
-            rename $oldname, $newname;
+            move $oldname, $newname;
         }
         return @errs;
     }



More information about the Pkg-freeipa-devel mailing list