openwrt/package/base-files/files/lib
Matthias Schiffer 5773538c90
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: de7ca7dafa ("base-files: merge /etc/passwd et al at sysupgrade config restore")
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
(cherry picked from commit 9bbaa6f2c0)
2024-08-29 21:07:48 +02:00
..
functions base-files: minor fix to mmc_get_mac_ascii function 2024-07-02 09:05:52 +02:00
preinit base-files: fix merge of passwd/shadow/group lines with trailing colons 2024-08-29 21:07:48 +02:00
upgrade base-files: sysupgrade: Add 2 sec sleep into process KILL loop 2023-09-12 14:53:40 +02:00
functions.sh base-files: fix uid/gid auto-enumeration to avoid 16-bit limit 2024-07-08 21:13:26 +02:00