Changeset 1332


Ignore:
Timestamp:
May 31, 2008, 11:36:27 PM (13 years ago)
Author:
Peter
Message:

fixes #378

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4-stable/yat/utility/FileUtil.cc

    r1329 r1332  
    7171            break;
    7272          case 'd':
    73             struct stat nodestat;
    74             stat(tryme.c_str(),&nodestat);
     73            struct stat64 nodestat;
     74            stat64(tryme.c_str(),&nodestat);
    7575            if (!S_ISDIR(nodestat.st_mode))
    7676              ok = false;
     
    8787  bool FileUtil::exists(void) const
    8888  {
    89     struct stat statt;
    90     if ( stat(path_.c_str(),&statt) && (errno!=ENOENT) ) {
     89    struct stat64 statt;
     90    if ( stat64(path_.c_str(),&statt) && (errno!=ENOENT) ) {
    9191      std::stringstream ss;
    92       ss << "stat(2) call failed with errno: " << errno;
     92      ss << "stat64(2) call failed with errno: " << errno;
    9393      throw IO_error(ss.str());
    9494    }
Note: See TracChangeset for help on using the changeset viewer.