From 39c9d99e5db1c1f520db278978f11a16f8a3454c Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Wed, 21 Jul 2010 14:08:38 +0000 Subject: [PATCH] [Bugfix] vncserver: accept <+optname> option when specified as the first one. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4111 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/vncserver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/vncserver b/unix/vncserver index 6ec58668..d56f5e26 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -176,7 +176,7 @@ if ((@ARGV > 0) && ($ARGV[0] =~ /^:(\d+)$/)) { if (!&CheckDisplayNumber($displayNumber)) { die "A VNC server is already running as :$displayNumber\n"; } -} elsif ((@ARGV > 0) && ($ARGV[0] !~ /^-/)) { +} elsif ((@ARGV > 0) && ($ARGV[0] !~ /^-/) && ($ARGV[0] !~ /^\+/)) { &Usage(); } else { $displayNumber = &GetDisplayNumber(); -- 2.39.5