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)
(cherry picked from commit e121845426c8d587491370432de0657099a22843)

Approved by: re (cperciva)

Details

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