aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/os
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-12-04 23:44:58 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-12-07 22:04:18 +0100
commiteff0f366db57783c49a19420a2351b5501ec9f1b (patch)
treef97ee578d7ae26a6216668e6bfa700e4205fa968 /nx-X11/programs/Xserver/os
parenteb9618739d0fb99f4aca933750a9d65dbe02aefb (diff)
downloadnx-libs-eff0f366db57783c49a19420a2351b5501ec9f1b.tar.gz
nx-libs-eff0f366db57783c49a19420a2351b5501ec9f1b.tar.bz2
nx-libs-eff0f366db57783c49a19420a2351b5501ec9f1b.zip
Reintroduce -co as no-op
nxagent will abort if it encounters an unknown command line option. As we want 3.6 to be a drop-in replacement for 3.5 we cannot simply drop old options but must accept them as no-op.
Diffstat (limited to 'nx-X11/programs/Xserver/os')
-rw-r--r--nx-X11/programs/Xserver/os/utils.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/os/utils.c b/nx-X11/programs/Xserver/os/utils.c
index dd637ca4b..a9c4b2ee4 100644
--- a/nx-X11/programs/Xserver/os/utils.c
+++ b/nx-X11/programs/Xserver/os/utils.c
@@ -571,6 +571,9 @@ void UseMsg(void)
ErrorF("-c turns off key-click\n");
ErrorF("c # key-click volume (0-100)\n");
ErrorF("-cc int default color visual class\n");
+#ifdef NXAGENT_SERVER
+ ErrorF("-co file deprecated, has no effect\n");
+#endif
#ifdef COMMANDLINE_CHALLENGED_OPERATING_SYSTEMS
ErrorF("-config file read options from file\n");
#endif
@@ -776,6 +779,14 @@ ProcessCommandLine(int argc, char *argv[])
else
UseMsg();
}
+#ifdef NXAGENT_SERVER
+ else if ( strcmp( argv[i], "-co") == 0)
+ {
+ fprintf(stderr, "Warning: Ignoring deprecated command line option '%s'.\n", argv[i]);
+ if(++i >= argc)
+ UseMsg();
+ }
+#endif
else if ( strcmp( argv[i], "-core") == 0)
CoreDump = TRUE;
else if ( strcmp( argv[i], "-dpi") == 0)