From 6e9ca6ea4e8e74815ef4da4a73d8a75558dfbf5e Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 8 Mar 2021 10:01:31 +0100 Subject: [PATCH] nfs-utils: Add "statx" patch Add patch: nfs-utils: Fix elder libc statx problem 76c21e3f ("mountd: Check the stat() return values in match_fsid()") [1] introduced new error handling. It sets errno to 0 and assumes that it is stable when there are no errors. However, this conflicts with the logic in support/misc/xstat.c, which sets errno to ENOSYS if glibc doesn't support statx() or has an incomplete emulation [2]. Work around by returning "no match" in case of errors as before. --- nfs-utils.be0 | 1 + 1 file changed, 1 insertion(+) diff --git a/nfs-utils.be0 b/nfs-utils.be0 index c5dbddc77..cbd83d26d 100755 --- a/nfs-utils.be0 +++ b/nfs-utils.be0 @@ -16,6 +16,7 @@ SRCURL[0]="https://sourceforge.net/projects/nfs/files/nfs-utils/${PKGVERSION}/nf ## The sources will be patched in the order of the array. PATCHURL+=(/src/mariux/patches/0001-nfs-utils-Fix-typo-in-mountpoint-detection.patch) +PATCHURL+=(/src/mariux/patches/0002-nfs-utils-Fix-elder-libc-statx-problem.patch) ############################################################################### ## Uncomment the next statement, if the software may not be able to be built