Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
assume we should not acquire the lock if we don't know the File System
  • Loading branch information
adamsitnik committed Jul 7, 2021
commit c687e6a67b743a16e3f48c1d4e9562616c6d7146
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ private bool CanLockTheFile(Interop.Sys.LockOperations lockOperation, FileAccess
case 0xFF534D42: // CIFS_MAGIC_NUMBER
case 0x517B: // SMB_SUPER_MAGIC
return false; // LOCK_SH is not OK when writing to NFS, CIFS or SMB
case -1: // error
return false; // assume we should not acquire the lock if we don't know the File System
default:
return true; // in all other situations it should be OK
}
Expand Down