]> git.proxmox.com Git - qemu.git/commit
qga: unlink just created guest-file if fchmod() or fdopen() fails on it
authorLaszlo Ersek <lersek@redhat.com>
Wed, 8 May 2013 15:31:36 +0000 (17:31 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 13 May 2013 14:45:49 +0000 (09:45 -0500)
commit2b720018060179b394f8ce736983373ab80dd37c
treea04a2bf21b4289a6d6945223663e073eb49e572d
parent8fe6bbca7176c9dfb35083a71bda95c1856e2ed5
qga: unlink just created guest-file if fchmod() or fdopen() fails on it

We shouldn't allow guest filesystem pollution on error paths.

Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c