2004-07-13 Peter Williams <peter@newton.cx>
authorDick Porter <dick@acm.org>
Wed, 14 Jul 2004 15:22:55 +0000 (15:22 -0000)
committerDick Porter <dick@acm.org>
Wed, 14 Jul 2004 15:22:55 +0000 (15:22 -0000)
* process.c (complete_path): Make sure we don't attempt to execute
directories.

svn path=/trunk/mono/; revision=31145

mono/metadata/ChangeLog
mono/metadata/process.c

index 8138188b3e216c39a2c0976d501351833f378ed1..164ad8a73e57a3690211ab6fb986c87077f60660 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-13  Peter Williams  <peter@newton.cx>
+       * process.c (complete_path): Make sure we don't attempt to execute
+       directories.
 2004-07-12  Geoff Norton <gnorton@customerdna.com>
 
         * DateTime.cs: Patch for bug #61112.  Our DateTime wasn't roundtripping over timezone
index 5e7cce9de7b9ba61755302fa5aaa44442d490950..90edc4023e544d0e7677441442faaaa3ae2bd690 100644 (file)
@@ -738,7 +738,7 @@ complete_path (const gunichar2 *appname, gunichar2 **completed)
                return FALSE;
        }
 
-       if (g_file_test (utf8app, G_FILE_TEST_IS_EXECUTABLE)) {
+       if (g_file_test (utf8app, G_FILE_TEST_IS_EXECUTABLE) && !g_file_test (utf8app, G_FILE_TEST_IS_DIR)) {
                g_free (utf8app);
                return FALSE;
        }