hi, there!

Can we enable using '$' in usernames in pw?
The patch is attached.

Other variant is to enable using '$' only at end of user name.

/fjoe
Index: pw_user.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/pw/pw_user.c,v
retrieving revision 1.51
diff -u -p -r1.51 pw_user.c
--- pw_user.c   24 Jun 2002 11:33:17 -0000      1.51
+++ pw_user.c   23 Jan 2003 20:01:46 -0000
@@ -1195,7 +1195,7 @@ char    *
 pw_checkname(u_char *name, int gecos)
 {
        int             l = 0;
-       char const     *notch = gecos ? ":!@" : " ,\t:+&#%$^()!@~*?<>=|\\/\"";
+       char const     *notch = gecos ? ":!@" : " ,\t:+&#%^()!@~*?<>=|\\/\"";
 
        while (name[l]) {
                if (strchr(notch, name[l]) != NULL || name[l] < ' ' || name[l] == 127 
||

Reply via email to