Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
base-files: fix merge of passwd/shadow/group lines with trailing colons
Empty trailing fields get lost when the lines are split and merged again at colons, resulting in unparsable entries. Only use the split fields for matching against the other file, but emit the original line unchanged to fix the issue. Fixes: de7ca7d ("base-files: merge /etc/passwd et al at sysupgrade config restore") Signed-off-by: Matthias Schiffer <[email protected]> (cherry picked from commit 9bbaa6f)
- Loading branch information