File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ pub fn zip_student_files<P: StudentFilePolicy>(
3737 log:: trace!( "adding directory {}" , path. display( ) ) ;
3838 writer. add_directory (
3939 path_to_zip_compatible_string ( path) ,
40- FileOptions :: default ( ) . unix_permissions ( 0o744 ) ,
40+ FileOptions :: default ( ) . unix_permissions ( 0o755 ) ,
4141 ) ?;
4242 } else {
4343 let bytes = file_util:: read_file ( entry. path ( ) ) ?;
4444 log:: trace!( "writing file {}" , path. display( ) ) ;
4545 writer. start_file (
4646 path_to_zip_compatible_string ( path) ,
47- FileOptions :: default ( ) . unix_permissions ( 0o744 ) ,
47+ FileOptions :: default ( ) . unix_permissions ( 0o755 ) ,
4848 ) ?;
4949 writer
5050 . write_all ( & bytes)
Original file line number Diff line number Diff line change @@ -418,15 +418,15 @@ fn execute_zip(
418418 if entry. path ( ) . is_file ( ) {
419419 writer. start_file (
420420 relative_path. to_string_lossy ( ) ,
421- zip:: write:: FileOptions :: default ( ) . unix_permissions ( 0o744 ) ,
421+ zip:: write:: FileOptions :: default ( ) . unix_permissions ( 0o755 ) ,
422422 ) ?;
423423 let bytes = file_util:: read_file ( entry. path ( ) ) ?;
424424 writer. write_all ( & bytes) . map_err ( LangsError :: ZipWrite ) ?;
425425 } else {
426426 // java-langs expects directories to have their own entries
427427 writer. start_file (
428428 relative_path. join ( "" ) . to_string_lossy ( ) , // java-langs expects directory entries to have a trailing slash
429- zip:: write:: FileOptions :: default ( ) . unix_permissions ( 0o744 ) ,
429+ zip:: write:: FileOptions :: default ( ) . unix_permissions ( 0o755 ) ,
430430 ) ?;
431431 }
432432 }
Original file line number Diff line number Diff line change @@ -296,12 +296,12 @@ pub fn prepare_submission(
296296 if entry_path. is_dir ( ) {
297297 archive. add_directory (
298298 stripped. to_string_lossy ( ) ,
299- FileOptions :: default ( ) . unix_permissions ( 0o744 ) ,
299+ FileOptions :: default ( ) . unix_permissions ( 0o755 ) ,
300300 ) ?;
301301 } else {
302302 archive. start_file (
303303 stripped. to_string_lossy ( ) ,
304- FileOptions :: default ( ) . unix_permissions ( 0o744 ) ,
304+ FileOptions :: default ( ) . unix_permissions ( 0o755 ) ,
305305 ) ?;
306306 let mut file = file_util:: open_file ( entry_path) ?;
307307 std:: io:: copy ( & mut file, & mut archive)
You can’t perform that action at this time.
0 commit comments