From owner-freebsd-bugs Wed Feb 27 19: 0: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D209237B417 for ; Wed, 27 Feb 2002 19:00:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1S301066580; Wed, 27 Feb 2002 19:00:01 -0800 (PST) (envelope-from gnats) Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37]) by hub.freebsd.org (Postfix) with ESMTP id AD1F637B402 for ; Wed, 27 Feb 2002 18:58:49 -0800 (PST) Received: by starbug.ugh.net.au (Postfix, from userid 1000) id 94083A80F; Thu, 28 Feb 2002 13:58:47 +1100 (EST) Message-Id: <20020228025847.94083A80F@starbug.ugh.net.au> Date: Thu, 28 Feb 2002 13:58:47 +1100 (EST) From: Andrew Reply-To: Andrew To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/35394: reversed comment in pwd_mkdb/pw_scan.c Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35394 >Category: bin >Synopsis: reversed comment in pwd_mkdb/pw_scan.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 27 19:00:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Andrew >Release: FreeBSD 4.5-STABLE i386 >Organization: UgH! >Environment: System: FreeBSD starbug.ugh.net.au 4.5-STABLE FreeBSD 4.5-STABLE #4: Wed Jan 30 17:17:14 EST 2002 andrew@starbug.ugh.net.au:/usr/obj/usr/src/sys/STARBUG i386 >Description: src/usr.sbin/pwd_mkdb/pw_scan.c contains a comment that states if pw_big_ids_warning is not -1 when pw_scan is called then it will be set accroding to whether the environment variable PW_SCAN_BIG_IDS is defined or not. The code does just the reverse (sets pw_big_ids_warning based on the existence of the environment variable PW_SCAN_BIG_IDS only if pw_big_ids_warning is set to -1 when pw_scan is called). This patch brings the comment into line with the code. >How-To-Repeat: >Fix: --- /usr/src/usr.sbin/pwd_mkdb/pw_scan.c Sat Apr 15 13:32:00 2000 +++ pw_scan.c Thu Feb 28 13:52:32 2002 @@ -62,9 +62,8 @@ * for id's which can not be stored in a short, but we are more liberal * by default, warning for IDs greater than USHRT_MAX. * - * If pw_big_ids_warning is anything other than -1 on entry to pw_scan() - * it will be set based on the existance of PW_SCAN_BIG_IDS in the - * environment. + * If pw_big_ids_warning is -1 on entry to pw_scan() it will be set based + * on the existance of PW_SCAN_BIG_IDS in the environment. */ int pw_big_ids_warning = -1; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message