gdm r6713 - in trunk: . utils



Author: bcameron
Date: Tue Feb 17 18:50:44 2009
New Revision: 6713
URL: http://svn.gnome.org/viewvc/gdm?rev=6713&view=rev

Log:
2009-02-17 Brian Cameron <brian cameron sun com>

        * utils/gdmflexiserver.c: Support VERSION command so that if user's
        run gdmflexiser --command=VERSION, it will return the version number.
        This is nice for backwards compatibility.  Fixes bug #535450.


Modified:
   trunk/ChangeLog
   trunk/utils/gdmflexiserver.c

Modified: trunk/utils/gdmflexiserver.c
==============================================================================
--- trunk/utils/gdmflexiserver.c	(original)
+++ trunk/utils/gdmflexiserver.c	Tue Feb 17 18:50:44 2009
@@ -720,9 +720,14 @@
                 exit (1);
         }
 
-        /* don't support commands */
+        /* don't support commands other than VERSION */
         if (send_command != NULL) {
-                g_warning ("No longer supported");
+                if (strcmp (send_command, "VERSION") == 0) {
+                        g_print ("GDM  %s \n", VERSION);
+                        return 0;
+                } else {
+                        g_warning ("No longer supported");
+                }
                 return 1;
         }
 



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