Skip to content

Commit

Permalink
unset sticky bit when clearing working directory (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
pretendWhale authored and Donny Wong committed Feb 7, 2024
1 parent 044f2dd commit bbc999d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# CHANGELOG
All notable changes to this project will be documented here.

## [unreleased]
- Fix bug that prevented copies of instructor directories from being deleted (#483)

## [v2.4.0]
- Fix bug that prevented test results from being returned when a feedback file could not be found (#458)
- Add support for Python 3.11 and 3.12 (#467)
Expand Down
4 changes: 2 additions & 2 deletions server/autotest_server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ def _clear_working_directory(tests_path: str, test_username: str) -> None:
Run commands that clear the tests_path working directory
"""
if test_username != getpass.getuser():
chmod_cmd = f"sudo -u {test_username} -- bash -c 'chmod -Rf ugo+rwX {tests_path}'"
chmod_cmd = f"sudo -u {test_username} -- bash -c 'chmod -Rf -t ugo+rwX {tests_path}'"
else:
chmod_cmd = f"chmod -Rf ugo+rwX {tests_path}"
chmod_cmd = f"chmod -Rf -t ugo+rwX {tests_path}"

subprocess.run(chmod_cmd, shell=True)

Expand Down

0 comments on commit bbc999d

Please sign in to comment.