Up to [local] / src / usr.bin / mg
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_6_3_BASE
Revision 1.64 / (download) - annotate - [select for diffs], Thu Sep 1 21:06:09 2016 UTC (7 years, 9 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.63: +7 -3 lines
Diff to previous 1.63 (colored)
Fix file descriptor leak Found by Coverity Scan. The ffropen() function returns FIODIR when the file is a directory. Check return value on error, in case of directory, close the descriptor. Source Joachim Nilsson, ok sunil@