backlight: Use System instead of system when checking for pkexec
authorHans de Goede <hdegoede@redhat.com>
Mon, 17 Feb 2014 12:16:52 +0000 (13:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 17 Feb 2014 18:38:45 +0000 (18:38 +0000)
commit27a9dc4ce8fa3ba56f68e04d11a6272348772039
treec4b5fb09acc4680d0af3f6781c77318a02b909ec
parent06066b7269b5ccf502c27466ad0434adfd9e3866
backlight: Use System instead of system when checking for pkexec

Even though we've failed to open the backlight normally, we may still be
running under a suid-root xserver, so use the servers build in System instead
of system so as to properly drop root rights.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
src/backlight.c