Bug 17810

Summary: pw coredumps when adding/deleting usernames longer than 30 characters
Product: Base System Reporter: pius <pius>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description pius 2000-04-05 12:20:01 UTC
/usr/sbin/pw coredumps when adding/deleting usernames longer than
30 characters

Fix: The length of the pfx buffer in the pw_update function in pwupd.c
should be dependent on MAXLOGNAME instead of being hardcoded to 32:

=cut=
How-To-Repeat: On a system that supports usernames longer than 30 characters (for
example, UT_NAMESIZE is set to 32 and MAXLOGNAME is set to 33), run
the following: "pw useradd testuser.customerservice12345678"
Comment 1 nra freebsd_committer freebsd_triage 2000-07-20 04:44:39 UTC
State Changed
From-To: open->closed

davidn fixed this in revision 1.14 of pw/pwupd.c.