Don't chdir in moss extraction
moss extraction uses absolute paths, so there's no need to
change directories, and several things break when the app's working
directory is not Rails.root
MODIFY
app/controllers/courses_controller.rb
app/controllers/courses_controller.rb
@@ -736,7 +736,6 @@ private
begin
Dir.mkdir(extTarDir)
Dir.mkdir(baseFilesDir) # To hold all basefiles
- Dir.chdir(baseFilesDir)
rescue
end
@@ -750,7 +749,6 @@ private
begin
Dir.mkdir(extFilesDir) # To hold all submissions
- Dir.chdir(extFilesDir)
rescue
end

Don't chdir in moss extraction (#1163)

moss extraction uses absolute paths, so there's no need to
change directories, and several things break when the app's working
directory is not Rails.root