opnsense-ports/x11/sddm/files/patch-src_greeter_UserModel.cpp
Franco Fichtner b0612e771a */*: sync with upstream
Taken from: HardenedBSD
2017-09-07 05:31:12 +02:00

12 lines
455 B
C++

Call 'setpwent' to rewind to the beginning of the passwd database.
--- src/greeter/UserModel.cpp.orig 2016-07-10 21:26:13 UTC
+++ src/greeter/UserModel.cpp
@@ -55,6 +55,7 @@ namespace SDDM {
const QString defaultFace = QStringLiteral("%1/.face.icon").arg(facesDir);
struct passwd *current_pw;
+ setpwent();
while ((current_pw = getpwent()) != nullptr) {
// skip entries with uids smaller than minimum uid