Revision: 8603 Author: [email protected] Date: Mon Jul 11 07:08:27 2011 Log: rollback
BUG= TEST= Review URL: http://codereview.chromium.org/7333010 http://code.google.com/p/v8/source/detail?r=8603 Modified: /branches/bleeding_edge/src/platform-posix.cc ======================================= --- /branches/bleeding_edge/src/platform-posix.cc Mon Jul 11 06:48:10 2011 +++ /branches/bleeding_edge/src/platform-posix.cc Mon Jul 11 07:08:27 2011 @@ -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 @@ // 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
