From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCQaq-00055x-NM for qemu-devel@nongnu.org; Fri, 14 Sep 2012 03:45:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCQam-0005A4-QT for qemu-devel@nongnu.org; Fri, 14 Sep 2012 03:45:40 -0400 Date: Fri, 14 Sep 2012 08:45:18 +0100 From: Stefan Hajnoczi Message-ID: <20120914074518.GA25596@stefanha-thinkpad.localdomain> References: <1346851582-9296-1-git-send-email-riegamaths@gmail.com> <504F1129.8060009@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <504F1129.8060009@redhat.com> Subject: Re: [Qemu-devel] [PATCH] block: Don't forget to delete temporary file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-trivial , qemu-devel , riegamaths@gmail.com On Tue, Sep 11, 2012 at 12:23:37PM +0200, Kevin Wolf wrote: > Am 05.09.2012 15:26, schrieb riegamaths@gmail.com: > > From: Dunrong Huang > > > > The caller would not delete temporary file after failed get_tmp_filename(). > > > > Signed-off-by: Dunrong Huang > > Thanks, applied to the block branch. For the record, using the close(2) errno after calling unlink(2) isn't a good idea. We should follow the docs and preserve errno carefully. It's the exact issue I pointed out on the original patch. Stefan