[sudo-users] Spaces in variable assignment from command args
Todd C. Miller
Todd.Miller at courtesan.com
Fri Jul 29 10:48:32 EDT 2011
On Thu, 28 Jul 2011 15:36:22 -0300, Bogdano Arendartchuk wrote:
> I have noticed that after installing sudo 1.7.6p2 on my system the
> following command stopped working as expected:
> sudo -i -u user make -C "FOO=this is a test"
> The argv of make was expected to be "FOO=this is a test", but it
> has only "FOO=this". I tried escaping the spaces and adding escaped
> quotes, but it didn't help.
This is an unfortunate consequence of a change made in sudo 1.7.5
to delay escaping of special characters in command argument for
"sudo -s" and "sudo -i". It will be fixed in sudo 1.8.2 and I'll
probably make a sudo 1.7.7 release about the same time.
More information about the sudo-users