Commit 58d7fb82 authored by yangguo@chromium.org's avatar yangguo@chromium.org

rollback

BUG=
TEST=

Review URL: http://codereview.chromium.org/7333010

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8603 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 890bc160
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment