Bug 17069

Summary: /usr/sbin/pw pw(8) fails for a specific username "mod"
Product: Base System Reporter: niederacher <niederacher>
Component: miscAssignee: davidn
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description niederacher 2000-02-29 09:30:01 UTC
our account management tools uses pw(8) for manipulating unix accounts on several hosts.
we have always used the "short mode" when specifying usernames:
e.g. "pw useradd <username>" instead off "pw useradd -n <username>"

today we tried to create a user named "mod". This paricular username
failed in "short mode" (pw useradd mod ... and pw usermod mod ...) on
several machines running different versions of freebsd.

however rewriting the scripts to issue an pw useradd -n mod ... and 
pw usermod -n mod ... solved the problem

How-To-Repeat: as described above: try
pw useradd mod ...
Comment 1 cpiazza freebsd_committer freebsd_triage 2000-03-18 04:53:23 UTC
Responsible Changed
From-To: freebsd-bugs->davidn

Over to the author of pw 
Comment 2 davidn freebsd_committer freebsd_triage 2000-06-18 18:40:17 UTC
State Changed
From-To: open->closed

Fixed: 
/home/ncvs/src/usr.sbin/pw/pw.c,v  <--  pw.c 
new revision: 1.19; previous revision: 1.18 
Thanks for the bug report!