On Fri, Oct 12, 2001 at 02:52:28PM +0400, Yar Tikhiy wrote: > Hi there, > > Now adduser(8) and pw(8) differ in what a valid user name is. > Adduser(8) enforces a user name to match the /^[a-z0-9_][a-z0-9_\-]*$/ > regexp. OTOH, pw(8) uses the Good Old Wrong Way of checking validity-- > it checks a user name against a list of *invalid* characters. > > I'm going to fix pw(8) so its view on valid user names is consistent > with that of adduser(8). > > Is there any reason to omit the period ('.') from the list of valid > characters? With the period included, the list would conform to > POSIX's definition of a valid user name.
The historical reason '.' is avoided is because it breaks, # chown user.group file Syntax. See the COMPATIBILITY section of chown(8). -- Crist J. Clark | [EMAIL PROTECTED] | [EMAIL PROTECTED] http://people.freebsd.org/~cjc/ | [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message