am-utils/am-utils-6.1.5-fix-autofs-p...

29 lines
622 B
Diff

am-utils-6.1.5 - fix autofs proto version define
From: Ian Kent <raven@themaw.net>
I don't think am-utils works with autofs protocol version 5.
---
conf/autofs/autofs_linux.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/conf/autofs/autofs_linux.c b/conf/autofs/autofs_linux.c
index f56befa..eeb211f 100644
--- a/conf/autofs/autofs_linux.c
+++ b/conf/autofs/autofs_linux.c
@@ -59,8 +59,11 @@
*/
#define AUTOFS_MIN_VERSION 3
+#if AUTOFS_MAX_PROTO_VERSION >= 5
+#define AUTOFS_MAX_VERSION 4
+#else
#define AUTOFS_MAX_VERSION AUTOFS_MAX_PROTO_VERSION
-
+#endif
/*
* STRUCTURES: