Skip to content

Commit

Permalink
also track newer CIFS
Browse files Browse the repository at this point in the history
(cherry picked from commit 375b390)
  • Loading branch information
jef-n committed Nov 18, 2019
1 parent 4eb78ea commit 54a2e79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -4036,7 +4036,8 @@ static bool IsLocalFile( const QString &path )
// Codes from http://man7.org/linux/man-pages/man2/statfs.2.html
if ( sStatFS.f_type == 0x6969 /* NFS */ ||
sStatFS.f_type == 0x517b /* SMB */ ||
sStatFS.f_type == 0xff534d42 /* CIFS */ )
sStatFS.f_type == 0xff534d42 /* CIFS */ ||
sStatFS.f_type == 0xfe534d42 /* CIFS */ )
{
return false;
}
Expand Down
3 changes: 2 additions & 1 deletion src/server/qgscapabilitiescache.cpp
Expand Up @@ -73,7 +73,8 @@ void QgsCapabilitiesCache::insertCapabilitiesDocument( const QString &configFile
if ( statfs( configFilePath.toUtf8().constData(), &sStatFS ) == 0 &&
( sStatFS.f_type == 0x6969 /* NFS */ ||
sStatFS.f_type == 0x517b /* SMB */ ||
sStatFS.f_type == 0xff534d42 /* CIFS */ ) )
sStatFS.f_type == 0xff534d42 /* CIFS */ ||
sStatFS.f_type == 0xfe534d42 /* CIFS */ ) )
{
QFileInfo fi( configFilePath );
mCachedCapabilitiesTimestamps[ configFilePath ] = fi.lastModified();
Expand Down

0 comments on commit 54a2e79

Please sign in to comment.