Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2003 02:25:38 +0600
From:      Max Khon <fjoe@iclub.nsu.ru>
To:        freebsd-current@freebsd.org
Subject:   pw
Message-ID:  <20030124022538.C36624@iclub.nsu.ru>

next in thread | raw e-mail | index | archive | help

--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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

--GvXjxJ+pjyke8COw
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="pw.diff"

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 ||

--GvXjxJ+pjyke8COw--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030124022538.C36624>