Re: [Libguestfs] [PATCH libguestfs] daemon: rpm: Check return values from librpm calls

2022-05-26 Thread Laszlo Ersek
On 05/25/22 18:01, Richard W.M. Jones wrote: > We previously didn't bother to check the return values from any librpm > calls. In some cases where possibly the RPM database is faulty, this > caused us to return a zero-length list of installed applications (but > no error indication). > > One way

[Libguestfs] [PATCH libguestfs] daemon: rpm: Check return values from librpm calls

2022-05-25 Thread Richard W.M. Jones
We previously didn't bother to check the return values from any librpm calls. In some cases where possibly the RPM database is faulty, this caused us to return a zero-length list of installed applications (but no error indication). One way to reproduce this is given below. Note this reproducer