sysusers: use filename if /proc is not mounted
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 30 Dec 2021 15:11:01 +0000 (00:11 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Jan 2022 10:07:03 +0000 (11:07 +0100)
commit12b657a1d1993aa03813c82c7793ac3a8120e1dc
tree49a6657d6499f17b4a9bf528f7096fe0f733153a
parentef3ab4e092270437a69948816755886b25f2ccaa
sysusers: use filename if /proc is not mounted

During system install, /proc may not be mounted yet.

Fixes RHBZ#2036217 (https://bugzilla.redhat.com/show_bug.cgi?id=2036217).

(cherry picked from commit b78d7f246899687a1697cdcebe93d8512c5e7c4b)
(cherry picked from commit 747b4f1ff8aac3a1b800b0a7ac0edef4af34da70)
(cherry picked from commit f78a48840205339157b186b7c8e576a3c690f6d9)
src/sysusers/sysusers.c