Skip to content

Commit

Permalink
Prevent crash if no /etc/mtab or /proc/mounts (GitHub issue #195)
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed May 29, 2022
1 parent 9856323 commit b944f1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/DirReadJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ bool DirReadJob::shouldCrossIntoFilesystem( const DirInfo * dir ) const
MountPoint * mountPoint = MountPoints::findByPath( dir->url() );

bool doCross =
mountPoint &&
! mountPoint->isSystemMount() && // /dev, /proc, /sys, ...
! mountPoint->isDuplicate() && // bind mount or multiple mounted
! mountPoint->isNetworkMount(); // NFS or CIFS (Samba)
Expand Down

0 comments on commit b944f1d

Please sign in to comment.