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:
Todd C. Miller
2014-01-07 10:35:56 -07:00
parent 1bd6943624
commit f57beb1afa

View File

@@ -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;
};
/*