diff options
author | tjr <tjr@FreeBSD.org> | 2004-07-30 10:58:06 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-07-30 10:58:06 +0000 |
commit | c0db43a356aeaab293488f2cfc7bb7ead34ce61b (patch) | |
tree | 785ed711f1a76af11a00488c726500a22b3d4073 /usr.bin/ul | |
parent | 07b5593d23d34a971e9ce3a66cf01789cef3dad4 (diff) | |
download | FreeBSD-src-c0db43a356aeaab293488f2cfc7bb7ead34ce61b.zip FreeBSD-src-c0db43a356aeaab293488f2cfc7bb7ead34ce61b.tar.gz |
Check for read errors.
Diffstat (limited to 'usr.bin/ul')
-rw-r--r-- | usr.bin/ul/ul.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c index 6e9a035..c7006a9 100644 --- a/usr.bin/ul/ul.c +++ b/usr.bin/ul/ul.c @@ -297,6 +297,8 @@ filter(FILE *f) maxcol = col; continue; } + if (ferror(f)) + err(1, NULL); if (maxcol) flushln(); } |