From andrew@ugh.net.au  Wed Feb 27 18:58:50 2002
Return-Path: <andrew@ugh.net.au>
Received: from starbug.ugh.net.au (starbug.ugh.net.au [203.31.238.37])
	by hub.freebsd.org (Postfix) with ESMTP id AD1F637B402
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <andrew@ugh.net.au>
Reply-To: Andrew <andrew@ugh.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: reversed comment in pwd_mkdb/pw_scan.c
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35394
>Category:       bin
>Synopsis:       reversed comment in pwd_mkdb/pw_scan.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 27 19:00:01 PST 2002
>Closed-Date:    Fri Mar 8 20:00:58 PST 2002
>Last-Modified:  Fri Mar 08 20:01:11 PST 2002
>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:
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Fri Mar 8 20:00:58 PST 2002 
State-Changed-Why:  
Patch applied to src/lib/libc/gen/pw_scan.c, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35394 
>Unformatted:
