From owner-freebsd-current Thu Jan 23 12:25:52 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED77837B401 for ; Thu, 23 Jan 2003 12:25:50 -0800 (PST) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id C375543F13 for ; Thu, 23 Jan 2003 12:25:48 -0800 (PST) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 18bnv0-0001ix-00 for freebsd-current@freebsd.org; Fri, 24 Jan 2003 02:25:46 +0600 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 18bnv0-0001iS-00 for freebsd-current@freebsd.org; Fri, 24 Jan 2003 02:25:46 +0600 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.6/8.12.6) with ESMTP id h0NKPdRV036965 for ; Fri, 24 Jan 2003 02:25:39 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.6/8.12.6/Submit) id h0NKPdQZ036964 for freebsd-current@freebsd.org; Fri, 24 Jan 2003 02:25:39 +0600 (NS) Date: Fri, 24 Jan 2003 02:25:38 +0600 From: Max Khon To: freebsd-current@freebsd.org Subject: pw Message-ID: <20030124022538.C36624@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Spam-Status: No, hits=-0.9 required=5.0 tests=SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT version=2.43 X-Envelope-To: freebsd-current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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