From: Adam Tkac Date: Wed, 21 Jul 2010 14:08:38 +0000 (+0000) Subject: [Bugfix] vncserver: accept <+optname> option when specified as the first one. X-Git-Tag: v1.0.90~202 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=39c9d99e5db1c1f520db278978f11a16f8a3454c;p=tigervnc.git [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 --- 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();