Add comment explaining about symlink following & posix.
authorJeremy Allison <jra@samba.org>
Sat, 17 Oct 2009 01:13:06 +0000 (18:13 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 17 Oct 2009 01:26:29 +0000 (18:26 -0700)
Jeremy.

source3/modules/vfs_streams_xattr.c

index b68fa02a354af98e4980108bd269e13e71327011..d7c0a834c0038b10db8f7efc659b4bd19b317edf 100644 (file)
@@ -253,6 +253,11 @@ static int streams_xattr_stat(vfs_handle_struct *handle,
                return SMB_VFS_NEXT_STAT(handle, smb_fname);
        }
 
+       /* Note if lp_posix_paths() is true, we can never
+        * get here as is_ntfs_stream_smb_fname() is
+        * always false. So we never need worry about
+        * not following links here. */
+
        /* If the default stream is requested, just stat the base file. */
        if (is_ntfs_default_stream_smb_fname(smb_fname)) {
                return streams_xattr_stat_base(handle, smb_fname, true);
@@ -304,7 +309,7 @@ static int streams_xattr_lstat(vfs_handle_struct *handle,
                return SMB_VFS_NEXT_LSTAT(handle, smb_fname);
        }
 
-               /* If the default stream is requested, just stat the base file. */
+       /* If the default stream is requested, just stat the base file. */
        if (is_ntfs_default_stream_smb_fname(smb_fname)) {
                return streams_xattr_stat_base(handle, smb_fname, false);
        }