Fix node-passwd on upgrade missing 3 columns

pull/1013/head
Erik Wilson 2019-11-05 02:35:16 -07:00
parent c736888e12
commit eff502342a
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ func Read(file string) (*Passwd, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
if len(record) < 3 { if len(record) < 2 {
return nil, fmt.Errorf("password file '%s' must have at least 3 columns (password, user name, user uid), found %d", file, len(record)) return nil, fmt.Errorf("password file '%s' must have at least 2 columns (password, name), found %d", file, len(record))
} }
e := entry{ e := entry{
pass: record[0], pass: record[0],