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:
parent
a26a796d5c
commit
c30cf645f8
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue