smbd: Update comment explaining streams and file-system sharemodes
authorChristof Schmitt <cs@samba.org>
Mon, 13 Sep 2021 19:01:01 +0000 (12:01 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 14 Sep 2021 23:14:36 +0000 (23:14 +0000)
The function kernel_flock will be deleted, drop the reference to it.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c

index 968dd8ecb00802ba430fad0b429a14a7c1dfe8cb..9c146177897a5c88ceaf4ae9baded573483fe2bb 100644 (file)
@@ -4054,10 +4054,10 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
                 * Beware: streams implementing VFS modules may
                 * implement streams in a way that fsp will have the
                 * basefile open in the fsp fd, so lacking a distinct
-                * fd for the stream kernel_flock will apply on the
-                * basefile which is wrong. The actual check is
-                * deferred to the VFS module implementing the
-                * kernel_flock call.
+                * fd for the stream the file-system sharemode will
+                * apply on the basefile which is wrong. The actual
+                * check is deferred to the VFS module implementing
+                * the file-system sharemode call.
                 */
                ret_flock = SMB_VFS_KERNEL_FLOCK(fsp, share_access, access_mask);
                if(ret_flock == -1 ){