]> git.donarmstrong.com Git - debbugs.git/commitdiff
debbugsconfig: use install instead of cp
authorBill Allombert <Bill.Allombert@math.u-bordeaux.fr>
Sun, 12 Jan 2025 20:54:02 +0000 (21:54 +0100)
committerBill Allombert <Bill.Allombert@math.u-bordeaux.fr>
Sun, 12 Jan 2025 20:54:02 +0000 (21:54 +0100)
debian/debbugsconfig

index 53af32e2debf0cd8132f0904a19176f07624521a..bf0e585757b4edcbc5e180ca978f2a7f997decae 100755 (executable)
@@ -84,7 +84,7 @@ sub template {
       File::Path::make_path($destdir, {'mode' => 0755 });
       print "created $destdir/.\n";
     }
-    system("cp $config_dir/$name $destdir/$name") == 0 ||
+    system("install -m644 $config_dir/$name $destdir/$name") == 0 ||
           die "$!";
     print "created $destdir/$name from template.\n";
   }