[sudo-users] Spaces in variable assignment from command args

Bogdano Arendartchuk debogdano at gmail.com
Thu Jul 28 14:36:22 EDT 2011


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[2] 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.

Is there any way I can still have variable assignments with spaces?

More information about the sudo-users mailing list