summaryrefslogtreecommitdiff
path: root/src/firstboot/firstboot.c
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx100@gmail.com>2015-02-26 02:46:24 +0300
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-07 09:08:47 -0500
commitad525df851a1bef7369fe21b5cde382941e7b073 (patch)
tree5eb5de1de192b6bd10a928d26ef10886dcf78c4d /src/firstboot/firstboot.c
parent6e392c9c45643d106673c6643ac8bf4e65da13c1 (diff)
firstboot: set all spwd fields to -1 for consistency with sysusers
Diffstat (limited to 'src/firstboot/firstboot.c')
-rw-r--r--src/firstboot/firstboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index a765d6d219..a37ca170fb 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 ... */