Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2002 13:58:47 +1100 (EST)
From:      Andrew <andrew@ugh.net.au>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/35394: reversed comment in pwd_mkdb/pw_scan.c
Message-ID:  <20020228025847.94083A80F@starbug.ugh.net.au>

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


>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




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