[BRLTTY] [PATCH] Make BRLAPI_DEFAUTH usable without polkit.
Christopher Brannon
chris at the-brannons.com
Wed Jul 5 13:12:42 EDT 2017
When polkit support was not built, the auth server was
refusing to start with the old value of BRLAPI_DEFAUTH.
---
Programs/brlapi.h.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Programs/brlapi.h.in b/Programs/brlapi.h.in
index b49e8c6eb..ed2c8cfbe 100644
--- a/Programs/brlapi.h.in
+++ b/Programs/brlapi.h.in
@@ -138,7 +138,11 @@ size_t BRLAPI_STDCALL brlapi_getHandleSize(void);
/* No authentication by default on Windows */
#define BRLAPI_DEFAUTH "none"
#else
+#ifdef USE_POLKIT
#define BRLAPI_DEFAUTH "polkit+keyfile:" BRLAPI_ETCDIR "/" BRLAPI_AUTHKEYFILE
+#else
+#define BRLAPI_DEFAUTH "keyfile:" BRLAPI_ETCDIR "/" BRLAPI_AUTHKEYFILE
+#endif /* USE_POLKIT */
#endif /* BRLAPI_WIN32 */
#ifdef __MINGW32__
--
2.13.2
More information about the BRLTTY
mailing list