xbps-rindex/sign: ignore fstat(2) return value (CID #98679).
This commit is contained in:
parent
61ec2d4540
commit
582de078f4
@ -274,7 +274,7 @@ sign_pkg(struct xbps_handle *xhp, const char *binpkg, const char *privkey, bool
|
|||||||
rv = EINVAL;
|
rv = EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
fstat(binpkg_fd, &st);
|
(void)fstat(binpkg_fd, &st);
|
||||||
buf = malloc(st.st_size);
|
buf = malloc(st.st_size);
|
||||||
assert(buf);
|
assert(buf);
|
||||||
if (read(binpkg_fd, buf, st.st_size) != st.st_size) {
|
if (read(binpkg_fd, buf, st.st_size) != st.st_size) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user