diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/modules/vfs_default.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 98e9aaa263..6410e7aad5 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -781,6 +781,9 @@ static BOOL vfswrap_lock(vfs_handle_struct *handle, files_struct *fsp, int fd, i { BOOL result; + /* SMB_VFS_GETLOCK should be used to query lock status. */ + SMB_ASSERT(op != SMB_F_GETLK); + START_PROFILE(syscall_fcntl_lock); result = fcntl_lock(fd, op, offset, count, type); END_PROFILE(syscall_fcntl_lock); |