Log Message:
-----------
Insure that error files can be read from the web even if the files are served using
lighttpd and port 8080 instead of the main server.
This adds group readable and executable permissions to the working directory for creating the tex files.
Modified Files:
--------------
webwork2/lib/WeBWorK/ContentGenerator:
Hardcopy.pm
Revision Data
-------------
Index: Hardcopy.pm
===================================================================
RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm,v
retrieving revision 1.102
retrieving revision 1.103
diff -Llib/WeBWorK/ContentGenerator/Hardcopy.pm -Llib/WeBWorK/ContentGenerator/Hardcopy.pm -u -r1.102 -r1.103
--- lib/WeBWorK/ContentGenerator/Hardcopy.pm
+++ lib/WeBWorK/ContentGenerator/Hardcopy.pm
@@ -568,6 +568,9 @@
$self->add_errors("Couldn't create temporary working directory: ".CGI::code(CGI::escapeHTML($@)));
return;
}
+ # make sure the directory can be read by other daemons e.g. lighttpd
+ chmod 0755, $temp_dir_path;
+
# do some error checking
unless (-e $temp_dir_path) {
|