Package: sudo
Version: 1.6.8p12-4
Severity: normal

The -l flag is used to get allowed/forbidden commands for the current user,
*if any*. It shouldn't prompt for a pwd if no commands are allowed for the
invoking user.
That breaks scripts that call some commands via sudo, but want/need to check 
whether the user is allowed before trying, just to avoid hanging in bg with
the pwd prompt.

I think that 'sudo -l' should simply exit with 0 and no lines, besides the
header, if user has no references in sudoers.

--
paolo




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to