diff --git a/nfs/nfsv3.cpp b/nfs/nfsv3.cpp --- a/nfs/nfsv3.cpp +++ b/nfs/nfsv3.cpp @@ -257,7 +257,7 @@ (xdrproc_t) xdr_mountres3, reinterpret_cast(&fhStatus), clnt_timeout); - if (fhStatus.fhs_status == 0) { + if (fhStatus.fhs_status == MNT3_OK) { QString fname = QFileInfo(QDir("/"), exportlist->ex_dir).filePath(); // Check if the dir is already exported @@ -267,6 +267,8 @@ addFileHandle(fname, static_cast(fhStatus.mountres3_u.mountinfo.fhandle)); addExportedDir(fname); + } else if(fhStatus.fhs_status == MNT3ERR_ACCES) { + continue; // skip mounts with no permission } else { failList.append(exportlist->ex_dir); }