-
Notifications
You must be signed in to change notification settings - Fork 35
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
Use rm instead instead of custom function for purging #347
Conversation
@Jammyjamjamman I need to update the tests to make it more clear, but a valgrind test is done on the gcc-11 build, and it passed. In your builddir, note the output if you run
I found a couple threads about it, but no solution has worked for me yet: https://www.reddit.com/r/archlinux/comments/vdu47o/valgrind_fatal_error_at_startup_a_function/ https://stackoverflow.com/questions/15721919/install-valgrind-fatal-error-at-startup |
I'm pretty sure the answer is https://forum.manjaro.org/t/unable-to-use-valgrind/120042/14 by pobrn:
In effect, there isn't anything we need to do about it. It's passing in the CI. |
src/utils_rmw.c
Outdated
|
||
// remove the top directory, which should now be empty | ||
assert(rmdir(h) == 0); | ||
char rm_args[BUFSIZ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops... I gotta update this test
2c29561
to
63ba0ed
Compare
Co-authored-by: Andy5995 <arch_stanton5995@protonmail.com> WIP: valgrind tests still need to pass
status = | ||
rmdir_recursive(purge_target, 1, cli_user_options->force, | ||
&ctr); | ||
status = remove(purge_target); |
Check failure
Code scanning / CodeQL
Time-of-check time-of-use filesystem race condition
Co-authored-by: Andy5995 arch_stanton5995@protonmail.com
WIP: valgrind tests still need to pass