fs-util: don't second guess openat_report_new() return values
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Oct 2024 20:40:52 +0000 (22:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Oct 2024 15:51:26 +0000 (17:51 +0200)
commitda3d81cccd1f915e91a756b3d783e8bc3ecd0a5c
tree5d12179d2865a2c2e9edaa79a5b4f093f598822e
parentd49449c89b3bec486b16ddaec582a4de28bc3dea
fs-util: don't second guess openat_report_new() return values

If openat_report_new() fails, then 'made_file' will be false, as no file
was created, hence there's no need to skip the unlinkat() explicitly
early, given that we check for 'made_file' anyway in the error path. The
extra error code checks are hence entirely redundant.
src/basic/fs-util.c