]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow the "@" and "!" characters in passwd file GECOS fields.
authordab <dab@FreeBSD.org>
Thu, 1 Mar 2018 17:47:28 +0000 (17:47 +0000)
committerdab <dab@FreeBSD.org>
Thu, 1 Mar 2018 17:47:28 +0000 (17:47 +0000)
commitfad14883a63638decbeb6165b593ce998c5a75f5
tree49113e992fa1d4309b91fbc54038655ad2faaeab
parent8dc5d5fb2d6093e1ae4600ba466b6dab84939131
Allow the "@" and "!" characters in passwd file GECOS fields.

Two PRs (152084 & 210187) request allowing the "@" and/or "!"
characters in the passwd file GECOS field. The man page for pw does
not mention that those characters are disallowed, Linux supports those
characters in this field, and the "@" character in particular would be
useful for storing email addresses in that field.

PR: 152084, 210187
Submitted by: jschauma@netmeister.org, Dave Cottlehuber <dch@freebsd.org>
Reported by: jschauma@netmeister.org, Dave Cottlehuber <dch@freebsd.org>
Reviewed by: delphij (secteam), vangyzen
MFC after: 1 week
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D14519
usr.sbin/pw/pw_user.c
usr.sbin/pw/tests/pw_useradd_test.sh