summaryrefslogtreecommitdiff
path: root/src/daemon.c
diff options
context:
space:
mode:
authorFelix Zhang <fezhang@suse.com>2018-06-13 11:05:52 +0800
committerRay Strode <rstrode@redhat.com>2018-06-13 12:39:06 -0400
commit34bedecf7da81a8b42382254e3f9a32398c1ca5d (patch)
tree07bc38e63b5b67937a9b56ff4e2cbf527c6837c3 /src/daemon.c
parentedcc26e5ae5fc09fad2d8e9afda0fea97c395d49 (diff)
daemon: don't abort loading users even if missing shadow entries
Some system accounts, e.g. sshd have no entries in /etc/shadow because they are created prior to /etc/shadow and have no passwords. Right now load_entries aborts iterating through /etc/passwd entries if it fails to find the corresponding /etc/shadow entry, ignoring all the users behind it, making those users missing from the gdm login screen user list. https://bugs.freedesktop.org/show_bug.cgi?id=106904
Diffstat (limited to 'src/daemon.c')
-rw-r--r--src/daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon.c b/src/daemon.c
index e711a46..2851ed6 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -235,8 +235,8 @@ entry_generator_fgetpwent (Daemon *daemon,
if (shadow_entry_buffers != NULL) {
*spent = &shadow_entry_buffers->spbuf;
- return pwent;
}
+ return pwent;
}
}