Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107099850
D34159.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
583 B
Referenced Files
None
Subscribers
None
D34159.diff
View Options
diff --git a/contrib/dma/mail.c b/contrib/dma/mail.c
--- a/contrib/dma/mail.c
+++ b/contrib/dma/mail.c
@@ -405,10 +405,8 @@
if ((ssize_t)error < 0)
return (-1);
- while (!feof(stdin)) {
+ while ((linelen = getline(&line, &linecap, stdin)) > 0) {
newline[0] = '\0';
- if ((linelen = getline(&line, &linecap, stdin)) <= 0)
- break;
if (had_last_line)
errlogx(EX_DATAERR, "bad mail input format:"
" from %s (uid %d) (envelope-from %s)",
@@ -510,8 +508,8 @@
}
}
}
-
- ret = 0;
+ if (ferror(stdin) == 0)
+ ret = 0;
fail:
free(line);
return (ret);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 2:55 AM (17 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15749306
Default Alt Text
D34159.diff (583 B)
Attached To
Mode
D34159: dma: use canonical getline() loop
Attached
Detach File
Event Timeline
Log In to Comment