2004-05-01 Todd Berman <tberman@sevenl.net>
authorTodd Berman <tberman@mono-cvs.ximian.com>
Sat, 1 May 2004 17:33:47 +0000 (17:33 -0000)
committerTodd Berman <tberman@mono-cvs.ximian.com>
Sat, 1 May 2004 17:33:47 +0000 (17:33 -0000)
        * gacutil.cs: ack, miguel is right, cmdline handling needs some love.

svn path=/trunk/mcs/; revision=26518

mcs/tools/gacutil/ChangeLog
mcs/tools/gacutil/gacutil.cs

index f5b93669d85e29c19d243b1b5ce1c899f1740524..6dad61cd570a619ba874066ad762be5fe4de5e4a 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-01  Todd Berman  <tberman@sevenl.net>
+
+       * gacutil.cs: ack, miguel is right, cmdline handling needs some love.
+
 2004-04-30  Todd Berman  <tberman@sevenl.net>
 
        * gacutil.cs: cleanup help.
index ee03d68bb16703fb509cfb08f19dc9e6a2453506..ddbef983af2e081b01dc5d2b23b2ef0f43c14696 100644 (file)
@@ -44,7 +44,7 @@ namespace Mono.Tools
                                args = stripped;
                        }
 
-                       if (args[args.Length - 2] == "/root" || args[args.Length - 2] == "-root" || args[args.Length - 2] == "--root") {
+                       if (args.Length >= 2 && (args[args.Length - 2] == "/root" || args[args.Length - 2] == "-root" || args[args.Length - 2] == "--root")) {
                                gac_path = Path.Combine (Path.Combine (args[args.Length - 1], "mono"), "gac");
                                gac_path += Path.DirectorySeparatorChar;