Blame SOURCES/autofs-5.1.8-bailout-on-rpc-systemerror.patch

4218b4
autofs-5.1.8 - bailout on rpc systemerror
4218b4
4218b4
From: Ian Kent <raven@themaw.net>
4218b4
4218b4
If there's a system error (eg. oversize packet received) just give up
4218b4
since redoing the call would likely end up with the same error.
4218b4
4218b4
Signed-off-by: Ian Kent <raven@themaw.net>
4218b4
---
4218b4
 CHANGELOG      |    1 +
4218b4
 lib/rpc_subs.c |    2 ++
4218b4
 2 files changed, 3 insertions(+)
4218b4
4218b4
--- autofs-5.1.7.orig/CHANGELOG
4218b4
+++ autofs-5.1.7/CHANGELOG
4218b4
@@ -99,6 +99,7 @@
4218b4
 - make NFS version check flags consistent.
4218b4
 - refactor get_nfs_info().
4218b4
 - also require TCP_REQUESTED when setting NFS port.
4218b4
+- bailout on rpc systemerror.
4218b4
 
4218b4
 25/01/2021 autofs-5.1.7
4218b4
 - make bind mounts propagation slave by default.
4218b4
--- autofs-5.1.7.orig/lib/rpc_subs.c
4218b4
+++ autofs-5.1.7/lib/rpc_subs.c
4218b4
@@ -1200,6 +1200,8 @@ static int rpc_get_exports_proto(struct
4218b4
 				 info->timeout);
4218b4
 		if (status == RPC_SUCCESS)
4218b4
 			break;
4218b4
+		if (status == RPC_SYSTEMERROR)
4218b4
+			break;
4218b4
 		if (++vers_entry > 2)
4218b4
 			break;
4218b4
 		CLNT_CONTROL(client, CLSET_VERS,