[PATCH v2 0/4] Delete temporary files under /tmp
H.J. Lu
hjl.tools@gmail.com
Sat Jul 19 14:43:25 GMT 2025
Delete temporary files under /tmp generated by "make test", instead of
leaving them behind:
1. Call support_delete_temp_files to delete temporary files before exit in
support_subprocess.
2. Update tst-fopen-threaded.c to call support_create_temp_directory to
create a temporary directory and open "file" in the temporary directory,
instead of using /tmp/openclosetest and leaving it behind.
3. Update tst-freopen4-main.c to call support_capture_subprocess with
chroot, which makes temporary files inaccessible, so that temporary files
can be deleted.
4. Update tst-env-setuid.c to delete LD_DEBUG_OUTPUT output, instead of
leaving it behind.
These fix BZ #33182.
H.J. Lu (4):
Delete temporary files in support_subprocess
tst-fopen-threaded.c: Delete temporary file
tst-freopen4-main.c: Call support_capture_subprocess with chroot
tst-env-setuid: Delete LD_DEBUG_OUTPUT output
elf/tst-env-setuid.c | 26 +++++++++++++---
stdio-common/tst-freopen4-main.c | 44 +++++++++++++++++++---------
support/support_subprocess.c | 3 ++
sysdeps/pthread/tst-fopen-threaded.c | 14 +++++++--
4 files changed, 67 insertions(+), 20 deletions(-)
--
2.50.1
More information about the Libc-alpha
mailing list