From eff502342a320580527b7b7525f95f68f453d450 Mon Sep 17 00:00:00 2001 From: Erik Wilson Date: Tue, 5 Nov 2019 02:35:16 -0700 Subject: [PATCH] Fix node-passwd on upgrade missing 3 columns --- pkg/passwd/passwd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/passwd/passwd.go b/pkg/passwd/passwd.go index 097a78dac6..f8179e86bd 100644 --- a/pkg/passwd/passwd.go +++ b/pkg/passwd/passwd.go @@ -44,8 +44,8 @@ func Read(file string) (*Passwd, error) { if err != nil { return nil, err } - if len(record) < 3 { - return nil, fmt.Errorf("password file '%s' must have at least 3 columns (password, user name, user uid), found %d", file, len(record)) + if len(record) < 2 { + return nil, fmt.Errorf("password file '%s' must have at least 2 columns (password, name), found %d", file, len(record)) } e := entry{ pass: record[0],