Make setting of the wrapper macros a compile-time error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user