| Summary: | lpc ignores interactive EOF | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Cy Schubert <Cy.Schubert> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.0-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed The minor problem with lpc which is described by this PR was fixed in RELENG4 (stable) back in July 2000. |
Enter into lpc interactive mode. Optionally issue some lpc commands. Press ^D or your EOF character: hummer# lpc lpc> lpc> lpc> stat Usage: stat {all | printer ...} lpc> lpc> lpc> lpc> lpc> lpc> q hummer# Fix: The following patch restores lpc's behavior as in 2.x.x and 3.x. sys# lpc lpc> lpc> lpc> stat Usage: stat {all | printer ...} lpc> cwsys#--vue42YwZhl3Vh7pR7vsPHWWRht2mAFyJuNsGSxQ9UA4uQHl6 Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- src/usr.sbin/lpr/lpc/lpc.c.orig Fri Aug 27 18:16:51 1999 +++ src/usr.sbin/lpr/lpc/lpc.c Fri May 19 19:11:55 2000 @@ -169,7 +169,7 @@ el_source(el, NULL); } if ((bp = el_gets(el, &num)) == NULL || num == 0) - return; + quit(0, NULL); len = (num > MAX_CMDLINE) ? MAX_CMDLINE : num; memcpy(cmdline, bp, len); How-To-Repeat: See description.