Skip to content

Commit

Permalink
ENOENT on unlink; DMOJ#293
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyene committed Dec 9, 2017
1 parent 52576a1 commit c4ea995
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dmoj/executors/mono_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ def kill_return():
def unlink(debugger):
path = debugger.readstr(debugger.uarg0)
if UNLINK_FS.match(path) is None:
print('Not allowed to unlink:', path)
log.warning('Denied file unlink: %s', path)
return False
return ACCESS_ENOENT(debugger)
return True

sec[sys_open] = sec[sys_shm_open] = handle_open
Expand Down

0 comments on commit c4ea995

Please sign in to comment.