]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/sysusers/sysusers.c
sysusers: Preserve ownership and mode on /etc/passwd and friends
authorColin Guthrie <colin@mageia.org>
Wed, 29 Oct 2014 14:03:41 +0000 (14:03 +0000)
committerColin Guthrie <colin@mageia.org>
Thu, 30 Oct 2014 13:38:10 +0000 (13:38 +0000)
commite3c72c21d62aadabf4df436c3e2c7219eeeccc1c
tree875b718acf386df8a7550895b25c7495c0919caf
parentaba248ee6b1eb10baf3d89eca2ad7569459af6ab
sysusers: Preserve ownership and mode on /etc/passwd and friends

When running sysusers we would clobber file ownership and permissions
on the files /etc/passwd, /etc/group and /etc/[g]shadow.

This simply preserves the ownership and mode if existing files are
found.
src/sysusers/sysusers.c