HomeFreeBSD

adduser: Fix confusion between `uclass` and `_class`.

Description

adduser: Fix confusion between uclass and _class.

This caused adduser to produce an invalid pw(8) command line. Due to
bugs in pw(8), the command line was silently accepted and led to the
user being created, but locked out and with no home directory.

Also fix the default value for the “Another user?” prompt.

Fixes: 170d0882903e
MFC after: 3 days
Reviewed by: karels, allanjude
Differential Revision: https://reviews.freebsd.org/D45098

(cherry picked from commit 46c4e86ebf1819fc09084c8aa79423d96fcaad4a)

Details

Provenance
desAuthored on Mon, May 6, 4:18 PM
Reviewer
karels
Differential Revision
D45098: adduser: Fix confusion between `uclass` and `_class`.
Parents
rGe3bd4b9288cc: pw: Rename some enums.
Branches
Unknown
Tags
Unknown