[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [augeas-devel] sudoers lens not working





On Fri, Mar 20, 2009 at 7:39 PM, David Lutterkort <lutter redhat com> wrote:
On Fri, 2009-03-20 at 09:26 -0400, Frank Sweetser wrote:
> [root trapeze etc]# dd if=/etc/sudoers bs=1 skip=1848 | head -10
> Defaults    env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
>                    LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
>                    LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
>                    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \
>                    LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
>                    _XKB_CHARSET XAUTHORITY"

Not that it fixes this problem, but on my F10 machine, /etc/sudoers uses
this syntax to build env_keep:

Defaults    env_keep =  "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS"
Defaults    env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults    env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults    env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults    env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"


Ah, that's one of the syntaxes that made me not want to parse the contents of Defaults further down... I had no clear idea of the way to properly represent the "+=" in the tree.


 Raphaël


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]