summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/pack.c b/build/pack.c
index e101f33a6..f6dd4aa72 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -540,7 +540,7 @@ int writeRPM(Header *hdrp, const char *fileName, int type,
rc = RPMERR_READ;
goto exit;
}
- if (Fwrite(buf, sizeof(buf[0]), count, fd) < 0) {
+ if (Fwrite(buf, sizeof(buf[0]), count, fd) != count) {
rpmError(RPMERR_NOSPACE, _("Unable to write payload to %s: %s\n"),
fileName, Fstrerror(fd));
rc = RPMERR_NOSPACE;