From 4a1d5fe7d126d495f910e06da3e4287923c2359b Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Tue, 17 Feb 2009 18:50:44 +0000 Subject: Support VERSION command so that if user's run gdmflexiser 2009-02-17 Brian Cameron * 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. svn path=/trunk/; revision=6713 --- utils/gdmflexiserver.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/gdmflexiserver.c b/utils/gdmflexiserver.c index f2159345..293c268b 100644 --- a/utils/gdmflexiserver.c +++ b/utils/gdmflexiserver.c @@ -720,9 +720,14 @@ main (int argc, char *argv[]) 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; } -- cgit v1.2.1