]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/install: fix bogus error handling
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 29 Jan 2026 06:45:55 +0000 (07:45 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 29 Jan 2026 06:45:55 +0000 (07:45 +0100)
commitc67d64add6f5bad6f65c7b61b2dc0f138d5370bd
treee55fc7b82aa88d18df3ddba56b7455595d755ecc
parent69d130aac53e098a6513f0cfcfcf4e161f15f41a
shared/install: fix bogus error handling

This partially reverts a4f0e0da3573a10bc5404142be8799418760b1d1. The
intent was good, we gather the errors, but we have no mechanism to
propagate the result, so the gathered result was ignored. In 'changes'
we can only report errors for specific units. If reading of the
directory fails, we might just as well report the error immediately.
This isn't great, but it's better then ignoring the errors. In practice,
failing halfway in this manner is unlikely, since it'd mean that the fs
is corrupted or something like that. We might as well return immediately
on such catastrophic errors.
src/shared/install.c