From f57beb1afaecf27f38cb2d6e49166b17eddf7ca8 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 7 Jan 2014 10:35:56 -0700 Subject: [PATCH] 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. --- plugins/sudoers/parse.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/sudoers/parse.h b/plugins/sudoers/parse.h index 9af302b00..8e5b1c96d 100644 --- a/plugins/sudoers/parse.h +++ b/plugins/sudoers/parse.h @@ -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; }; /*