Loading
switch-to-configuration-ng: replace is_unit_disabled with UnitFileState
is_unit_disabled mapped any canonicalize() error to "disabled" via unwrap_or(true), conflating ENOENT with transient I/O failures. For new_dropins.all(is_unit_disabled) that meant a transient error on a still-present drop-in could read as "all masked" and stop a unit that is still configured. Replace the boolean helper with a tri-state UnitFileState (Present / Masked / Missing) returned from unit_file_state(). Only ENOENT maps to Missing; other errors are propagated so callers cannot accidentally pick the wrong default.