Bug 22897

Summary: su doesnt't compile without LOGIN_CAP defined
Product: Base System Reporter: rmd <rmd>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description rmd 2000-11-16 16:40:01 UTC
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)

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);
Comment 1 dd freebsd_committer freebsd_triage 2001-06-19 01:26:33 UTC
State Changed
From-To: open->closed

Committed, thanks!