Skip to content
Snippets Groups Projects

DD Upload Processor: Better more werkens for teh Linux.

Closed Eric Oulashin requested to merge dd_upload_processor_more_file_permission_fixes into master
2 unresolved threads

DD Upload Processor v1.02: For Linux, after extracting an archive, sets file permissions too (in addition to directories which were being set already) so that all the files are readable, to make for a successful upload scan.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
281 284 deltree(baseWorkDir + "/");
282 285 if (!mkdir(baseWorkDir))
283 286 {
284 console.print("nyhWarning: nwh Unable to create the work dir.n\r\n");
287 console.print("\1n\1y\1hWarning: \1n\1w\1h Unable to create the work dir.\1n\r\n");
285 288 retval = -1;
286 289 }
287 file_chmod(baseWorkDir, 0x1fd); // Octal 775, rwxrwxr-x
288 //chmodDirsRecursive(baseWorkDir, 0x1fd); // Octal 775, rwxrwxr-x
290 if (!gRunningInWindows)
291 {
292 file_chmod(baseWorkDir, 0x1fd); // Octal 775, rwxrwxr-x
  • 996 1002 scriptFile.writeln(pCommand);
    997 1003 scriptFile.close();
    998 1004 wroteScriptFile = true;
    999 file_chmod(scriptFilename, 775); // rwxrwxr-x
    1005 if (!gRunningInWindows)
    1006 file_chmod(scriptFilename, 775); // rwxrwxr-x
  • closed

  • Please register or sign in to reply
    Loading