From: Vladimir Jelen Date: Mon, 3 Oct 2005 15:16:34 +0000 (+0000) Subject: fix X-Git-Tag: holmes-import~720 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=8fdf6b462dbb622cb58b43c0bf69a27d7db20b39;p=libucw.git fix --- diff --git a/lib/carefulio.c b/lib/carefulio.c index 435bd169..7bfbc784 100644 --- a/lib/carefulio.c +++ b/lib/carefulio.c @@ -40,7 +40,7 @@ careful_write(int fd, void *buf, int len) while (len) { int l = write(fd, pos, len); - if (l <= 0) + if (l < 0) return -1; if (!l) return 0;