diff options
author | 2023-03-02 18:14:31 -0500 | |
---|---|---|
committer | 2023-03-02 18:14:31 -0500 | |
commit | d3f906fca2b84926d2c9c47c526787784c355281 (patch) | |
tree | d1117be118f29a15ef2dfa6fe538d5e097813fe3 | |
parent | Update readme regarding default output path and last modified check (diff) |
Allow uploaded files to be writeable in nsjail
-rw-r--r-- | snekbox/nsjail.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/snekbox/nsjail.py b/snekbox/nsjail.py index 57083e1..3e0f742 100644 --- a/snekbox/nsjail.py +++ b/snekbox/nsjail.py @@ -231,6 +231,8 @@ class NsJail: for file in files: try: f_path = file.save_to(fs.home) + # Allow file to be writable + f_path.chmod(0o777) # Save the written at time to later check if it was modified files_written[f_path] = f_path.stat().st_mtime log.info(f"Created file at {(fs.home / file.path)!r}.") |