Page MenuHomeFreeBSD

D45437.id139582.diff
No OneTemporary

D45437.id139582.diff

diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c
--- a/usr.bin/lam/lam.c
+++ b/usr.bin/lam/lam.c
@@ -43,6 +43,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sysexits.h>
#include <unistd.h>
#define MAXOFILES 20
@@ -212,6 +213,9 @@
*p = '\0';
if (c == EOF) {
ip->eof = 1;
+ if (ferror(ip->fp)) {
+ err(EX_IOERR, NULL);
+ }
if (ip->fp == stdin)
fclose(stdin);
morefiles--;

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 19, 9:27 PM (12 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15960158
Default Alt Text
D45437.id139582.diff (429 B)

Event Timeline