[systemd-commits] src/firstboot

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Sat Mar 7 06:08:51 PST 2015


 src/firstboot/firstboot.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit ad525df851a1bef7369fe21b5cde382941e7b073
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date:   Thu Feb 26 02:46:24 2015 +0300

    firstboot: set all spwd fields to -1 for consistency with sysusers

diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index a765d6d..a37ca17 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -525,9 +525,9 @@ static int process_root_password(void) {
 
         struct spwd item = {
                 .sp_namp = (char*) "root",
-                .sp_min = 0,
-                .sp_max = 99999,
-                .sp_warn = 7,
+                .sp_min = -1,
+                .sp_max = -1,
+                .sp_warn = -1,
                 .sp_inact = -1,
                 .sp_expire = -1,
                 .sp_flag = (unsigned long) -1, /* this appears to be what everybody does ... */



More information about the systemd-commits mailing list