diff options
Diffstat (limited to 'experimental/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp')
-rw-r--r-- | experimental/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/experimental/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp b/experimental/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp index 4a0891699..dcde72ab4 100644 --- a/experimental/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp +++ b/experimental/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp @@ -290,33 +290,33 @@ bool TQFileInfo::permission( int permissionSpec ) const if ( !fic || !cache ) doStat(); if ( fic ) { - uint tqmask = 0; + uint mask = 0; if ( permissionSpec & ReadOwner ) - tqmask |= S_IRUSR; + mask |= S_IRUSR; if ( permissionSpec & WriteOwner ) - tqmask |= S_IWUSR; + mask |= S_IWUSR; if ( permissionSpec & ExeOwner ) - tqmask |= S_IXUSR; + mask |= S_IXUSR; if ( permissionSpec & ReadUser ) - tqmask |= S_IRUSR; + mask |= S_IRUSR; if ( permissionSpec & WriteUser ) - tqmask |= S_IWUSR; + mask |= S_IWUSR; if ( permissionSpec & ExeUser ) - tqmask |= S_IXUSR; + mask |= S_IXUSR; if ( permissionSpec & ReadGroup ) - tqmask |= S_IRGRP; + mask |= S_IRGRP; if ( permissionSpec & WriteGroup ) - tqmask |= S_IWGRP; + mask |= S_IWGRP; if ( permissionSpec & ExeGroup ) - tqmask |= S_IXGRP; + mask |= S_IXGRP; if ( permissionSpec & ReadOther ) - tqmask |= S_IROTH; + mask |= S_IROTH; if ( permissionSpec & WriteOther ) - tqmask |= S_IWOTH; + mask |= S_IWOTH; if ( permissionSpec & ExeOther ) - tqmask |= S_IXOTH; - if ( tqmask ) { - return (fic->st.st_mode & tqmask) == tqmask; + mask |= S_IXOTH; + if ( mask ) { + return (fic->st.st_mode & mask) == mask; } else { #if defined(TQT_CHECK_NULL) qWarning( "TQFileInfo::permission: permissionSpec is 0" ); |