by staticassertion · 10mo ago · 0 comments
# terrible code, never use ty
def cleanup(dir):
system("rm -rf {dir}")
def main():
work_dir = os.env["WORK_DIR"]
cleanup(work_dir)
and then due to a misconfiguration "$WORK_DIR" was truncated to be just "/"?At what point is it negligent?
Though rm /$TARGET where $TARGET is blank is a common enough footgun that --preserve-root exists and is default.
0: https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commi...