genericopenlibs/openenvcore/backend/src/corebackend/posixfs.cpp
branchRCL_3
changeset 15 18da5738c9b6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
--- a/genericopenlibs/openenvcore/backend/src/corebackend/posixfs.cpp	Mon Mar 15 12:46:24 2010 +0200
+++ b/genericopenlibs/openenvcore/backend/src/corebackend/posixfs.cpp	Thu Apr 01 00:15:09 2010 +0300
@@ -268,7 +268,7 @@
 		return MapError(err,anErrno);
 			}
 
-int PosixFilesystem::stat (RFs& aFs, const wchar_t* name, struct stat *st, int& anErrno)
+int PosixFilesystem::statbackend (RFs& aFs, const wchar_t* name, struct stat *st, int& anErrno)
 	{
 	TFullName fullName;
 	TInt err=0;
@@ -323,8 +323,9 @@
 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */
 			
 			st->st_dev = st->st_rdev = (dev_t)TDriveUnit(fullName);
-            if( !(entry.iAtt & (KEntryAttHidden | KEntryAttSystem)) || (entry.iAtt & KEntryAttDir))
-                {
+			if( ( (entry.iAtt & (KEntryAttHidden | KEntryAttSystem)) != (KEntryAttHidden | KEntryAttSystem) )
+			        || (entry.iAtt & KEntryAttDir))
+			    {
 			    CFileDesc::MapStat(*st, entry.iModified, entry.iAtt);
                 }
             else