[BRLTTY] [PATCH] Make BRLAPI_DEFAUTH usable without polkit.

Samuel Thibault samuel.thibault at ens-lyon.org
Wed Jul 5 17:44:31 EDT 2017


Christopher Brannon, on mer. 05 juil. 2017 10:12:42 -0700, wrote:
> When polkit support was not built, the auth server was
> refusing to start with the old value of BRLAPI_DEFAUTH.

That looks good to me :)

> ---
>  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
> 
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at brltty.com
> For general information, go to: http://brltty.com/mailman/listinfo/brltty
> 

-- 
Samuel
<s> cool, j'ai un rapport a rendre pour le 31 decembre a minuit...
 -+- #ens-mim - bonne année ! -+-


More information about the BRLTTY mailing list