FreeBSD Bugzilla – Attachment 9551 Details for
Bug 19532
cdcontrol does not handle EOF on stdin properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 635 bytes, created by
adrian
on 2000-06-26 21:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
adrian
Created:
2000-06-26 21:00:01 UTC
Size:
635 bytes
patch
obsolete
>--- cdcontrol.c.orig Mon Jun 26 15:18:55 2000 >+++ cdcontrol.c Mon Jun 26 15:48:59 2000 >@@ -956,8 +956,11 @@ > el_set(el, EL_SIGNAL, 1); > el_source(el, NULL); > } >- if ((bp = el_gets(el, &num)) == NULL || num == 0) >- return (0); >+ if ((bp = el_gets(el, &num)) == NULL || num == 0) { >+ *cmd = CMD_QUIT; >+ fprintf (stderr, "\r\n"); >+ return (""); >+ } > > len = (num > MAXLINE) ? MAXLINE : num; > memcpy(buf, bp, len); >@@ -969,7 +972,7 @@ > if (! fgets (buf, sizeof (buf), stdin)) { > *cmd = CMD_QUIT; > fprintf (stderr, "\r\n"); >- return (0); >+ return (""); > } > } > p = parse (buf, cmd);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19532
: 9551