Go back to making the bit fields in struct cmndtag explicitly signed.
This fixes a problem on gcc 4.8 (at least) which appears to be treating the value as unsigned by default.
This commit is contained in:
@@ -53,11 +53,11 @@ struct sudo_command {
|
||||
* Possible values: true, false, IMPLIED, UNSPEC.
|
||||
*/
|
||||
struct cmndtag {
|
||||
int nopasswd: 3;
|
||||
int noexec: 3;
|
||||
int setenv: 3;
|
||||
int log_input: 3;
|
||||
int log_output: 3;
|
||||
signed int nopasswd: 3;
|
||||
signed int noexec: 3;
|
||||
signed int setenv: 3;
|
||||
signed int log_input: 3;
|
||||
signed int log_output: 3;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user