xbps-rindex/sign: ignore fstat(2) return value (CID #98679).

This commit is contained in:
Juan RP 2015-07-26 08:21:00 +02:00
parent 61ec2d4540
commit 582de078f4

View File

@ -274,7 +274,7 @@ sign_pkg(struct xbps_handle *xhp, const char *binpkg, const char *privkey, bool
rv = EINVAL;
goto out;
}
fstat(binpkg_fd, &st);
(void)fstat(binpkg_fd, &st);
buf = malloc(st.st_size);
assert(buf);
if (read(binpkg_fd, buf, st.st_size) != st.st_size) {