[gdm] slave: fix run_script return value confusion



commit 63f499002714719475123ad1c78bd3bf9eb92300
Author: Ray Strode <rstrode redhat com>
Date:   Tue Sep 4 21:58:59 2012 -0400

    slave: fix run_script return value confusion
    
    run_script should return TRUE when succeeding and FALSE
    when failing.

 daemon/gdm-slave.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c
index ea8bdb4..9209826 100644
--- a/daemon/gdm-slave.c
+++ b/daemon/gdm-slave.c
@@ -364,9 +364,7 @@ gdm_slave_run_script (GdmSlave   *slave,
 
         if (WIFEXITED (status)) {
                 g_debug ("GdmSlave: Process exit status: %d", WEXITSTATUS (status));
-                ret = WEXITSTATUS (status) != 0;
-        } else {
-                ret = TRUE;
+                ret = WEXITSTATUS (status) == 0;
         }
 
  out:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]