Bug 204968 - pw lock _numeric_login_ doen't work propely
Summary: pw lock _numeric_login_ doen't work propely
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.2-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-02 13:49 UTC by Raf
Modified: 2016-12-10 12:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raf 2015-12-02 13:49:33 UTC
Adding numeric logins runs smoothly after update, but locking numerical logins still fails with error:

# pw adduser 123
pw: login name required
# pw adduser -n 123
# pw lock 123
pw: no such uid `123'
# pw lock -n 123
pw: illegal option -- n
pw: unknown switch

https://forums.freebsd.org/threads/pw-cant-add-numeric-user-name.54224/
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-12-02 22:02:33 UTC
A commit references this bug:

Author: bapt
Date: Wed Dec  2 22:01:37 UTC 2015
New revision: 291657
URL: https://svnweb.freebsd.org/changeset/base/291657

Log:
  Fix handling of numeric-only names with pw lock
  Add a regression test about it

  PR:		204968
  MFC after:	1 week

Changes:
  head/usr.sbin/pw/pw_user.c
  head/usr.sbin/pw/tests/pw_lock.sh
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-12-09 21:34:29 UTC
A commit references this bug:

Author: bapt
Date: Wed Dec  9 21:34:03 UTC 2015
New revision: 292025
URL: https://svnweb.freebsd.org/changeset/base/292025

Log:
  MFC: r291657

  Fix handling of numeric-only names with pw lock
  Add a regression test about it

  PR:		204968

Changes:
_U  stable/10/
  stable/10/usr.sbin/pw/pw_user.c
  stable/10/usr.sbin/pw/tests/pw_lock.sh