Bugzilla – Bug 323258
[PATCH] gacutil thinks absolute *nix paths for libraries are options
Last modified: 2007-09-15 21:24:57 UTC
---- Reported by rafaelteixeirabr@hotmail.com 2007-01-21 09:57:22 MST ---- >>gacutil /i /xxx/xxx/xxx/assembly.dll Option /xxx/xxx/assembly.dll takes 1 argument Patch on mcs/tools/gacutil: Index: driver.cs =================================================================== --- driver.cs (revision 71418) +++ driver.cs (working copy) @@ -574,7 +574,7 @@ private static bool IsSwitch (string arg) { - return (arg [0] == '-' || arg [0] == '/'); + return (arg [0] == '-' || (arg [0] == '/' && !arg.EndsWith(".dll") && arg.IndexOf('/', 1) < 0 ) ); } private static Command GetCommand (string arg) Index: ChangeLog =================================================================== --- ChangeLog (revision 71418) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2007-01-21 Rafael Teixeira <rafaelteixeirabr@hotmail.com> + + * driver.cs: accept absolute *nix paths for library names without getting them confused with options + 2006-07-24 Alp Toker <alp@atoker.com> * driver.cs: Minor typo fixes in comments and informational output. ---- Additional Comments From miguel@ximian.com 2007-01-21 11:44:03 MST ---- Please commit this fix. ---- Additional Comments From rafaelteixeirabr@hotmail.com 2007-01-21 17:01:59 MST ---- Committed revision 71431. Unknown operating system unknown. Setting to default OS "Other".