[gnome-session] main: change exit value of --version from 1 to 0



commit f18652d38f5b739dbb2086c5e6fe9629a0a49295
Author: Janne Haapsaari <haaja iki fi>
Date:   Sat Dec 15 22:53:46 2012 +0200

    main: change exit value of --version from 1 to 0
    
    gnome-session --version prints version string and gave 1 as a
    exit value. This patch changes that exit value from 1 to 0.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690273

 gnome-session/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-session/main.c b/gnome-session/main.c
index 6ed3091..c1f3ead 100644
--- a/gnome-session/main.c
+++ b/gnome-session/main.c
@@ -288,7 +288,7 @@ main (int argc, char **argv)
 
         if (show_version) {
                 g_print ("%s %s\n", argv [0], VERSION);
-                exit (1);
+                exit (0);
         }
 
         if (please_fail) {



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