[PATCH v2 0/4] Delete temporary files under /tmp
Andreas K. Huettel
dilfridge@gentoo.org
Sat Jul 19 19:14:14 GMT 2025
Am Samstag, 19. Juli 2025, 16:43:25 Mitteleuropäische Sommerzeit schrieb H.J. Lu:
> 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.
Nice but not urgent. Let's save this series for after the release.
>
> 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(-)
>
>
--
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, comrel, toolchain, base-system, perl, libreoffice)
https://wiki.gentoo.org/wiki/User:Dilfridge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20250719/85f20810/attachment.sig>
More information about the Libc-alpha
mailing list