From nobody@FreeBSD.org  Thu Dec 21 06:10:33 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id CABCB37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Dec 2000 06:10:32 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id eBLEAW873687;
	Thu, 21 Dec 2000 06:10:32 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200012211410.eBLEAW873687@freefall.freebsd.org>
Date: Thu, 21 Dec 2000 06:10:32 -0800 (PST)
From: stolz@i2.informatik.rwth-aachen.de
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: Unused variable CDB in /usr/src/usr.sbin/pw/Makefile
X-Send-Pr-Version: www-1.0

>Number:         23712
>Category:       bin
>Synopsis:       Unused variable CDB in /usr/src/usr.sbin/pw/Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dd
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 21 06:20:00 PST 2000
>Closed-Date:    Sun Jul 1 18:13:14 PDT 2001
>Last-Modified:  Sun Jul 01 18:13:22 PDT 2001
>Originator:     Volker Stolz
>Release:        4.2-STABLE
>Organization:
>Environment:
FreeBSD monster.ikea.net 4.2-STABLE FreeBSD 4.2-STABLE #0: Wed Nov 29 14:54:28 CET 2000     vs@monster.ikea.net:/usr/src/sys/compile/MONSTER  i386
>Description:
/usr/src/usr.sbin/pw/Makefile includes the uninitialized variable CDB into CFLAGS:

#RND=   -DUSE_MD5RAND
CFLAGS+= -W -Wall $(CDB) $(RND)

This will lead to problems when the user invoking make (e.g. on make world)
has set this particular variable in his environment. It should be set to a
reasonable default (empty: "") or be dropped altogether.

On a related note, the assignment to RND in the same Makefile is commented out.
To avoid the same problem as mentioned above with CDB it should at least
be set to "".
>How-To-Repeat:
Enter /usr/src/usr.sbin/pw, set CDB or RND to some arbitrary value, invoke make.
>Fix:
Two possible solutions for CDB:
1) Drop it from the Makefile
2) Set it to ""

For RND:
Set to "".

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: dd 
State-Changed-When: Mon Jun 18 17:39:31 PDT 2001 
State-Changed-Why:  
Committed, thanks! 


Responsible-Changed-From-To: freebsd-bugs->dd 
Responsible-Changed-By: dd 
Responsible-Changed-When: Mon Jun 18 17:39:31 PDT 2001 
Responsible-Changed-Why:  
My MFC reminder. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23712 
State-Changed-From-To: analyzed->closed 
State-Changed-By: dd 
State-Changed-When: Sun Jul 1 18:13:14 PDT 2001 
State-Changed-Why:  
MFC'd some time ago. 

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