| Summary: | su doesnt't compile without LOGIN_CAP defined | ||
|---|---|---|---|
| Product: | Base System | Reporter: | rmd <rmd> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Committed, thanks! |
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);