naccyde / rpms / systemd

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