[Sheepdog] [PATCH 5/5] sheep: fix a wrong error check of exec_req()

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Thu Sep 1 11:46:44 CEST 2011


Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 sheep/store.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sheep/store.c b/sheep/store.c
index 05e4ace..a7c7e3b 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -1279,7 +1279,7 @@ next:
 
 	close(fd);
 
-	if (ret < 0) {
+	if (ret != 0) {
 		eprintf("%"PRIu32"\n", rsp->result);
 		goto err;
 	}
-- 
1.7.2.5




More information about the sheepdog mailing list