1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

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