diff options
author | Adam Tkac <atkac@redhat.com> | 2010-07-21 14:08:38 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2010-07-21 14:08:38 +0000 |
commit | 39c9d99e5db1c1f520db278978f11a16f8a3454c (patch) | |
tree | 9d0691c2c8052015b3df7f5b643cbda080fbaa53 | |
parent | 3c5be39e92ef06902a5c502616ec052381345f7a (diff) | |
download | tigervnc-39c9d99e5db1c1f520db278978f11a16f8a3454c.tar.gz tigervnc-39c9d99e5db1c1f520db278978f11a16f8a3454c.zip |
[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
-rwxr-xr-x | unix/vncserver | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |