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

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