rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
74 stars 90 forks source link

Hash cache: Improved work with extended file attributes #309

Closed jrohel closed 3 months ago

jrohel commented 3 months ago

PR modifies the code so that if a function detects that user extended file attributes are not supported, it stops using them.

Note: In that case, it does not call flistxattr. Calling flistxattr causes problems, so not calling it should solve those issues:

The flistxattr system call problem is also addressed in Linux kernel >=6.2:

However, this patch is still useful and additionally solves the problem when using an older kernel.