Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2000 08:35:44 -0800 (PST)
From:      rmd@quadratec.fr
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/22897: su doesnt't compile without LOGIN_CAP defined
Message-ID:  <20001116163544.A607C37B4CF@hub.freebsd.org>

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

>Number:         22897
>Category:       bin
>Synopsis:       su doesnt't compile without LOGIN_CAP defined
>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:   Thu Nov 16 08:40:01 PST 2000
>Closed-Date:
>Last-Modified:
>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:
>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?20001116163544.A607C37B4CF>