diff options
author | Brian Cameron <brian.cameron@sun.com> | 2009-02-17 18:50:44 +0000 |
---|---|---|
committer | Brian Cameron <bcameron@src.gnome.org> | 2009-02-17 18:50:44 +0000 |
commit | 4a1d5fe7d126d495f910e06da3e4287923c2359b (patch) | |
tree | 24e62ad7cf85d9f7bcc191e134f6aab6a5ca61b1 /utils/gdmflexiserver.c | |
parent | 6e165eeb966fa6cd9cbc1e85079893755bdf66f3 (diff) | |
download | gdm-4a1d5fe7d126d495f910e06da3e4287923c2359b.tar.gz |
Support VERSION command so that if user's run gdmflexiser
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.
svn path=/trunk/; revision=6713
Diffstat (limited to 'utils/gdmflexiserver.c')
-rw-r--r-- | utils/gdmflexiserver.c | 9 |
1 files changed, 7 insertions, 2 deletions
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; } |