[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Correctly check for hibernation permissions (bug #11529)

noreply at xfce.org noreply at xfce.org
Wed Feb 11 15:27:54 CET 2015


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 7b280d67541d6a96470c269335658202cbc692f8
Author: Maxim Mikityanskiy <maxtram95 at gmail.com>
Date:   Wed Feb 11 15:26:45 2015 +0100

    Correctly check for hibernation permissions (bug #11529)
---
 src/xfpm-power.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index a898fe7..b89d343 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -1537,7 +1537,7 @@ static gboolean xfpm_power_dbus_reboot   (XfpmPower *power,
 static gboolean xfpm_power_dbus_hibernate (XfpmPower * power,
 					 GError **error)
 {
-    if ( !power->priv->auth_suspend )
+    if ( !power->priv->auth_hibernate )
     {
 	g_set_error (error, XFPM_ERROR, XFPM_ERROR_PERMISSION_DENIED,
                     _("Permission denied"));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list