[pypy-svn] r33045 - pypy/dist/pypy/translator/cli/src

antocuni at codespeak.net antocuni at codespeak.net
Mon Oct 9 13:50:42 CEST 2006


Author: antocuni
Date: Mon Oct  9 13:50:41 2006
New Revision: 33045

Modified:
   pypy/dist/pypy/translator/cli/src/ll_os.cs
Log:
Raise OSError when stat()ing an empty path.



Modified: pypy/dist/pypy/translator/cli/src/ll_os.cs
==============================================================================
--- pypy/dist/pypy/translator/cli/src/ll_os.cs	(original)
+++ pypy/dist/pypy/translator/cli/src/ll_os.cs	Mon Oct  9 13:50:41 2006
@@ -265,6 +265,9 @@
 
         public static Record_Stat_Result ll_os_stat(string path)
         {
+            if (path == "")
+                Helpers.raise_OSError(Errno.ENOENT);
+
             FileInfo f = new FileInfo(path);
             if (f.Exists) {
                 Record_Stat_Result res = new Record_Stat_Result();



More information about the Pypy-commit mailing list