]> git.ipfire.org Git - thirdparty/systemd.git/commit
nss-systemd: if cannot open bus, then try to read user info directly (#6971)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 4 Oct 2017 17:29:36 +0000 (02:29 +0900)
committerLennart Poettering <lennart@poettering.net>
Wed, 4 Oct 2017 17:29:36 +0000 (19:29 +0200)
commit689ca202e7cc2d2818d64fa002d63cfd30add572
tree9548aa66acf852916e8466843e78e907a663be2d
parent4aa1d31c89c8fb74e70eed5849c780c4678829a3
nss-systemd: if cannot open bus, then try to read user info directly (#6971)

If sd_bus_open_system() fail, then try to read information about
dynamic users from /run/systemd/dynamic-uid.
This makes services can successfully call getpwuid() or their friends
even if dbus.service is not started yet.

Fixes #6967.
src/nss-systemd/nss-systemd.c