diff options
author | Remi Collet <remi@remirepo.net> | 2023-11-10 10:32:24 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-11-10 10:32:24 +0100 |
commit | 9f7298ac633f610af96b0b915e49596bb5520aeb (patch) | |
tree | a450ea70c4223dd8cd43abadb1b8946d21e65c70 /rpminfo.c | |
parent | 09f16e5a8944ec0f741cecac37ff75b9067827ea (diff) |
don't rely on rpmfiSetFX return value
Diffstat (limited to 'rpminfo.c')
-rw-r--r-- | rpminfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -857,8 +857,9 @@ PHP_FUNCTION(rpmgetsymlink) fi = rpmfiNewArchiveReader(gzdi, files, RPMFI_ITER_READ_ARCHIVE); rc = rpmfiFindFN(fi, name); + rpmfiSetFX(fi, rc); /* return value not reliable on librpm < 4.17 */ if (rc < 0 - || rpmfiSetFX(fi, rc) < 0 + || rpmfiFX(fi) != rc || (link = rpmfiFLink(fi)) == NULL) { RETVAL_NULL(); } else { |