about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/monitoring/munin/dont_preserve_source_dir_permissions.patch
blob: 78eac728305174c1fa000cf2d9207adf7a644db9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# https://rt.cpan.org/Public/Bug/Display.html?id=75112
diff --git a/master/lib/Munin/Master/HTMLOld.pm b/master/lib/Munin/Master/HTMLOld.pm
index 2b6e71f..c0aa2c0 100644
--- a/master/lib/Munin/Master/HTMLOld.pm
+++ b/master/lib/Munin/Master/HTMLOld.pm
@@ -711,10 +711,12 @@ sub emit_main_index {
 
 sub copy_web_resources {
     my ($staticdir, $htmldir) = @_;
+       local $File::Copy::Recursive::KeepMode = 0;
 	unless(dircopy($staticdir, "$htmldir/static")){
 		ERROR "[ERROR] Could not copy contents from $staticdir to $htmldir";
 		die "[ERROR] Could not copy contents from $staticdir to $htmldir";
 	}
+       local $File::Copy::Recursive::KeepMode = 1;
 }
 
 sub instanciate_comparison_templates {