Skip to content

Instantly share code, notes, and snippets.

@petr999
Created March 26, 2011 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petr999/888145 to your computer and use it in GitHub Desktop.
Save petr999/888145 to your computer and use it in GitHub Desktop.
--- showdependencygraph.cgi.orig
+++ showdependencygraph.cgi
@@ -269,6 +269,8 @@
print $pngfh $_ while <DOT>;
close DOT;
close $pngfh;
+
+ chmod( 0644, $pngfilename ) or die $!;
# On Windows $pngfilename will contain \ instead of /
$pngfilename =~ s|\\|/|g if ON_WINDOWS;
@@ -293,6 +295,9 @@
print $mapfh $_ while <DOT>;
close DOT;
close $mapfh;
+
+ chmod( 0644, $mapfilename ) or die $!;
+
$vars->{'image_map'} = CreateImagemap($mapfilename);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment