From: David Dykstra Date: Tue, 28 May 2002 15:42:51 +0000 (+0000) Subject: Close previously opened file descriptor when mkstemp fails in recv_files(). X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/8e34cd41f0a361d0f389aedb5527c0972986ab56?hp=8e34cd41f0a361d0f389aedb5527c0972986ab56 Close previously opened file descriptor when mkstemp fails in recv_files(). Every other failure condition in that function was alreadying doing this, and I saw a case with a lot of "mkstemp...No space left on device" messages started becoming "mkstemp...Too many open files" messages because of this bug. Not that it makes a whole lot of difference, since nothing gets copied because the disk was out of space. ---