From nobody@FreeBSD.ORG  Thu Nov 16 08:35:44 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id A607C37B4CF; Thu, 16 Nov 2000 08:35:44 -0800 (PST)
Message-Id: <20001116163544.A607C37B4CF@hub.freebsd.org>
Date: Thu, 16 Nov 2000 08:35:44 -0800 (PST)
From: rmd@quadratec.fr
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: su doesnt't compile without LOGIN_CAP defined
X-Send-Pr-Version: www-1.0

>Number:         22897
>Category:       bin
>Synopsis:       su doesnt't compile without LOGIN_CAP defined
>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:   Thu Nov 16 08:40:01 PST 2000
>Closed-Date:    Mon Jun 18 17:26:33 PDT 2001
>Last-Modified:  Mon Jun 18 17:26:40 PDT 2001
>Originator:     rene-marc dolhen
>Release:        su.c 1.34
>Organization:
quadratec
>Environment:
>Description:
while trying to compile su.c, I got the following error:

su.c: In function `main':
su.c:402: `lc' undeclared (first use this function)
>How-To-Repeat:

>Fix:
here is the diff of su.c:

@@ -399,7 +399,9 @@
                 syslog(LOG_NOTICE|LOG_AUTH, "%s to %s%s",
                     username, user, ontty());
 
+#ifdef LOGIN_CAP
         login_close(lc);
+#endif
 
         execv(shell, np);
         err(1, "%s", shell);


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

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