Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-temp / -k option: file cleanup does not work and fails for some files #22

Closed
tjakobi opened this issue Aug 1, 2016 · 1 comment
Closed
Assignees
Labels

Comments

@tjakobi
Copy link
Contributor

tjakobi commented Aug 1, 2016

Make sure that all temporary files are deleted on exist. Make also sure that the process does not fail if certain files are missing.

Important: use a secure erase function in such a way that "-O /" does not kill the whole system!

@tjakobi tjakobi added the bug label Aug 1, 2016
@tjakobi tjakobi added this to the DCC version 0.4.4 milestone Aug 1, 2016
@tjakobi tjakobi self-assigned this Aug 1, 2016
@tjakobi
Copy link
Contributor Author

tjakobi commented Aug 4, 2016

Re-introduced tmp_ prefix for all temporary files to have a more convenient way of deleting "all temp files"

tjakobi added a commit that referenced this issue Aug 4, 2016
Re-introduced "tmp_" prefix for all temporary files. On exit, "tmp_*" files within the $TMP folder are deleted. Afterwards, rmdir() tries to delete the (hopefully) empty folder as throws an exception if it is not empty. This should circumvent stuff like "rm / -rf".
@tjakobi tjakobi closed this as completed Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant