On 2006-11-12 at 04:34 -0500, Mike Frysinger wrote:
> why not modify sudo to not filter the EDITOR env var then there is no
> more problem

Considering that this is the only situation where environment is
dropped... yes this fixes sudo problem. The other possible solution is:

#!/bin/bash
export EDITOR="/usr/bin/editor"
/usr/bin/fcrontab -e

BUT.

1. upstream uses this in the code. Then to avoid mess and unify approach
we should remove all such things from the code itself. In other cases
this will stay as a bug in gentoo.

2. And I see possibility to write secure editor, which will write only
in predefined locations. Use of such editor became possible only through
clumsy wrapper scripts (like above) if we chose to force people never to
use built in defaults.

And in anyway we need solution to make things more predictable.

Peter.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to