Comment 5 for bug 764397

Revision history for this message
Felix Geyer (debfx) wrote :

To test the patch you can call:
dbus-send --system --print-reply --dest=com.ubuntu.LanguageSelector / com.ubuntu.LanguageSelector.SetSystemDefaultLanguageEnv string:"abc\" EVIL_COMMAND && true \"xyz"

The old version writes LANGUAGE="abc" EVIL_COMMAND && true "xyz" to /etc/default/locale even when canceling the auth dialog.
The patched one always returns false.