Reviewers: ,

Message:
rollback because everything is failing :P

Description:
rollback


BUG=
TEST=


Please review this at http://codereview.chromium.org/7333010/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/platform-posix.cc


Index: src/platform-posix.cc
diff --git a/src/platform-posix.cc b/src/platform-posix.cc
index c53881a244fb786e9d649ad8664f941262dd7c6c..83f6c8112edf0732e4de957779e393d13d2deda3 100644
--- a/src/platform-posix.cc
+++ b/src/platform-posix.cc
@@ -37,7 +37,6 @@
 #include <sys/resource.h>
 #include <sys/time.h>
 #include <sys/types.h>
-#include <sys/stat.h>

 #include <arpa/inet.h>
 #include <netinet/in.h>
@@ -131,10 +130,7 @@ int OS::GetLastError() {
 //

 FILE* OS::FOpen(const char* path, const char* mode) {
-  struct stat file_stat;
-  if (stat(path, &file_stat) == 0 && (file_stat.st_mode & S_IFREG))
-    return fopen(path, mode);
-  return NULL;
+  return fopen(path, mode);
 }




--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to