ryantimwilson / rpms / systemd

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