From c30cf645f84232eba03d542519b5eca398a06825 Mon Sep 17 00:00:00 2001 From: Parnell Springmeyer Date: Thu, 26 Jan 2017 02:06:24 -0800 Subject: [PATCH] Make setting of the wrapper macros a compile-time error --- .../security/permissions-wrappers/permissions-wrapper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/security/permissions-wrappers/permissions-wrapper.c b/nixos/modules/security/permissions-wrappers/permissions-wrapper.c index 2e7b1edde3be..6e00df9cef83 100644 --- a/nixos/modules/security/permissions-wrappers/permissions-wrapper.c +++ b/nixos/modules/security/permissions-wrappers/permissions-wrapper.c @@ -33,8 +33,7 @@ static char * wrapperType = "setcap"; #elif defined WRAPPER_SETUID static char * wrapperType = "setuid"; #else -fprintf(stderr, "Program must be compiled with either the WRAPPER_SETCAP or WRAPPER_SETUID macros specified!\n"); -exit(1); +#error Program must be compiled with either the WRAPPER_SETCAP or WRAPPER_SETUID macro #endif // Update the capabilities of the running process to include the given