valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0080-firstboot-set-all-spwd-fields-to-1-for-consistency-w.patch

803fb7
From 5857b7843b35d84f976a399765f1c9a5365742a2 Mon Sep 17 00:00:00 2001
803fb7
From: Ivan Shapovalov <intelfx100@gmail.com>
803fb7
Date: Thu, 26 Feb 2015 02:46:24 +0300
803fb7
Subject: [PATCH] firstboot: set all spwd fields to -1 for consistency with
803fb7
 sysusers
803fb7
803fb7
(cherry picked from commit ad525df851a1bef7369fe21b5cde382941e7b073)
803fb7
---
803fb7
 src/firstboot/firstboot.c | 6 +++---
803fb7
 1 file changed, 3 insertions(+), 3 deletions(-)
803fb7
803fb7
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
803fb7
index a765d6d21..a37ca170f 100644
803fb7
--- a/src/firstboot/firstboot.c
803fb7
+++ b/src/firstboot/firstboot.c
803fb7
@@ -525,9 +525,9 @@ static int process_root_password(void) {
803fb7
 
803fb7
         struct spwd item = {
803fb7
                 .sp_namp = (char*) "root",
803fb7
-                .sp_min = 0,
803fb7
-                .sp_max = 99999,
803fb7
-                .sp_warn = 7,
803fb7
+                .sp_min = -1,
803fb7
+                .sp_max = -1,
803fb7
+                .sp_warn = -1,
803fb7
                 .sp_inact = -1,
803fb7
                 .sp_expire = -1,
803fb7
                 .sp_flag = (unsigned long) -1, /* this appears to be what everybody does ... */