OpenBSD CVS

CVS log for src/usr.bin/mg/extend.c


[BACK] Up to [local] / src / usr.bin / mg

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_6_4_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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.