Make setting of the wrapper macros a compile-time error

This commit is contained in:
Parnell Springmeyer 2017-01-26 02:06:24 -08:00
parent a26a796d5c
commit c30cf645f8
No known key found for this signature in database
GPG Key ID: DCCF89258EAD874A

View File

@ -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