CVSROOT: /cvs Module name: src Changes by: [email protected] 2016/09/01 15:06:09
Modified files:
usr.bin/mg : extend.c
Log message:
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@
