From 4ae822846d9250a115d0597302a2141128cf73a6 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 27 Aug 2012 00:27:27 +0200 Subject: [PATCH] vm/filecopy: add one missing write() error checking --- qubes_rpc/unpack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qubes_rpc/unpack.c b/qubes_rpc/unpack.c index 2ce10fc1..e87a067b 100644 --- a/qubes_rpc/unpack.c +++ b/qubes_rpc/unpack.c @@ -42,7 +42,8 @@ void send_status_and_crc(int code) { saved_errno = errno; hdr.error_code = code; hdr.crc32 = crc32_sum; - write_all(1, &hdr, sizeof(hdr)); + if (!write_all(1, &hdr, sizeof(hdr))) + perror("write status"); errno = saved_errno; }