/[debian]/mimetic/trunk/mimetic/os/mmfile.cxx
ViewVC logotype

Diff of /mimetic/trunk/mimetic/os/mmfile.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 510 by gregoa, Sun Apr 16 12:21:05 2006 UTC revision 511 by gregoa, Sun Jan 21 20:13:31 2007 UTC
# Line 2  Line 2 
2      copyright            : (C) 2002-2005 by Stefano Barbato      copyright            : (C) 2002-2005 by Stefano Barbato
3      email                : stefano@codesink.org      email                : stefano@codesink.org
4    
5      $Id: mmfile.cxx,v 1.4 2006/04/11 10:04:58 tat Exp $      $Id: mmfile.cxx,v 1.5 2006/07/13 13:36:25 tat Exp $
6   ***************************************************************************/   ***************************************************************************/
7    
8  /***************************************************************************  /***************************************************************************
# Line 45  MMFile::MMFile(const string& fqn, int mo Line 45  MMFile::MMFile(const string& fqn, int mo
45    
46  bool MMFile::open(const std::string& fqn, int mode /*= O_RDONLY*/)  bool MMFile::open(const std::string& fqn, int mode /*= O_RDONLY*/)
47  {  {
48        m_fqn = fqn;
49      if(!stat() || !S_ISREG(m_st.st_mode))      if(!stat() || !S_ISREG(m_st.st_mode))
50          return false;          return false;
     m_fqn = fqn;  
51      return open(mode);      return open(mode);
52  }  }
53    

Legend:
Removed from v.510  
changed lines
  Added in v.511

  ViewVC Help
Powered by ViewVC 1.1.26