[Mono-bugs] [Bug 32809][Cos] New - Process fails to run an executable if there is a dir with the same name

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
24 Oct 2002 15:39:46 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gonzalo@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=32809

--- shadow/32809	Thu Oct 24 11:39:46 2002
+++ shadow/32809.tmp.9685	Thu Oct 24 11:39:46 2002
@@ -0,0 +1,43 @@
+Bug#: 32809
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Process fails to run an executable if there is a dir with the same name
+
+Description of Problem:
+When Process looks for the executable, if there is a directory with the
+same name as the executable, it fails to find it.
+
+MS also fails!!!
+
+Steps to reproduce the problem:
+1. compile the attached test case and run:
+mono ptest.exe mcs
+
+in a directory where there is a directory called 'mcs'.
+
+Actual Results:
+RC: 255
+
+Expected Results (on windows, the directory name should be 'mcs.exe'):
+Unhandled Exception: System.ComponentModel.Win32Exception: Cannot find the
+specified file
+   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo
+startInfo)
+   at System.Diagnostics.Process.Start()
+
+Additional Information:
+Though MS runtime it also fails, it would be nice if we do the right thing,
+ie, ignore the directory.