Date: Thu, 29 Mar 2001 15:17:47 -0600 From: Lucas Bergman <lucas@slb.to> To: Dan Larsson <dl@tyfon.net> Cc: questions@freebsd.org Subject: Re: pw not accepting @-sign Message-ID: <20010329151747.B26465@billygoat.slb.to> In-Reply-To: <20010329114525.F17737-100000@hq1.tyfon.net>; from dl@tyfon.net on Thu, Mar 29, 2001 at 11:46:51AM %2B0200 References: <20010329114525.F17737-100000@hq1.tyfon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> Is it possible to make pw accept @-signs in the gecos/description > field? Look at /usr/src/usr.sbin/pw/pw_user.c, around line 1210, near the beginning of the pw_checkname() function, you'll see something that looks like: char const *notch = gecos ? ":!@" : " ,\t:+&#%$^()!@~*?<>=|\\/\""; The three characters in the first string (':', '!', and '@') are the printable characters not allowed in GECOS fields. Remove the '@' and rebuild, and you're in business. Note that I don't know why '@' is outlawed in GECOS fields in the first place, so I have no idea if this will impact the system. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010329151747.B26465>