Author: rolf
Date: 2007-01-03 05:11:21 -0500 (Wed, 03 Jan 2007)
New Revision: 70415

Modified:
   trunk/vbnc/vbnc/source/General/CommandLine.vb
Log:
2007-01-03  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>

* Fixed a bug when passing an absolute path on Linux (starting with /, normally 
considered an command line option).




Modified: trunk/vbnc/vbnc/source/General/CommandLine.vb
===================================================================
--- trunk/vbnc/vbnc/source/General/CommandLine.vb       2007-01-03 09:38:43 UTC 
(rev 70414)
+++ trunk/vbnc/vbnc/source/General/CommandLine.vb       2007-01-03 10:11:21 UTC 
(rev 70415)
@@ -877,7 +877,7 @@
             If s.StartsWith("@") Then
                 Dim strResponseFile As String = s.Substring(1)
                 result = ParseResponseFile(strResponseFile, SecondaryPath) 
AndAlso result
-            ElseIf s.StartsWith("/") OrElse s.StartsWith("-") Then
+            ElseIf (s.StartsWith("/") AndAlso s.IndexOf("/"c, 2) = -1) OrElse 
s.StartsWith("-") Then
                 Dim strName As String = "", strValue As String = ""
                 'Find the colon which separates the values
                 Dim iColon As Integer = InStr(2, s, ":", CompareMethod.Binary)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to