]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfile-util: make sure errno is left untouched by CLEANUP_TMPFILE_AT()
authorLennart Poettering <lennart@poettering.net>
Tue, 11 Nov 2025 10:35:45 +0000 (11:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 17 Nov 2025 15:53:31 +0000 (16:53 +0100)
commit1daf7b56bb9b01f03bb19a12e9aec5934116a72d
treee65b4c50040d32e3f340c8a2b8fefca178f24c9b
parenta5023c7a4bb85f93f4ed8045eb36e71683cab7b2
tmpfile-util: make sure errno is left untouched by CLEANUP_TMPFILE_AT()

This mimics how rm_rf_physical_and_free() operate, and we should do the
same here, and make clean-up error paths not touch errno needlessly.
src/basic/tmpfile-util.c