summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-02-05 22:10:25 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2022-02-05 22:10:25 -0500
commit82aee2a00eee55a809031ce16eb289fb7cf96579 (patch)
tree4e4ba348d74c6a5fd27066d7f165644410cf14a1
parent0297e7660fdc36f9b84078cdeef6be3ab21504ce (diff)
In do_rename, use copy+delete rather than rename to solve some ownership problems.
-rwxr-xr-xmini-dinstall3
1 files changed, 2 insertions, 1 deletions
diff --git a/mini-dinstall b/mini-dinstall
index 319d9e5..cb18fef 100755
--- a/mini-dinstall
+++ b/mini-dinstall
@@ -192,7 +192,8 @@ def do_mkdir(name):
exit(1)
def do_rename(source, target):
- do_and_log('Renaming "%s" to "%s"' % (source, target), os.rename, source, target)
+ do_and_log('Renaming "%s" to "%s"' % (source, target), shutil.copy, source, target)
+ os.remove(source)
def do_chmod(name, mode):
if mode == 0: