s3: smbd: Add check_path_syntax_smb2_posix().
authorJeremy Allison <jra@samba.org>
Tue, 28 Mar 2023 18:06:36 +0000 (11:06 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 31 Mar 2023 20:22:38 +0000 (20:22 +0000)
Not yet used. Simple wrapper, identical to check_path_syntax_posix().
I want to keep SMB1/SMB2 code as separate as possible so
we can remove any SMB1 code path later.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/proto.h
source3/smbd/smb2_reply.c

index e8b3034970e26bcf70eddcbe1dff8d85839b3beb..fafbdf3b787f2be9601b745e350d4eb6d4cc2f56 100644 (file)
@@ -931,6 +931,7 @@ bool disk_quotas(connection_struct *conn, struct smb_filename *fname,
 NTSTATUS check_path_syntax(char *path);
 NTSTATUS check_path_syntax_posix(char *path);
 NTSTATUS check_path_syntax_smb2(char *path);
+NTSTATUS check_path_syntax_smb2_posix(char *path);
 NTSTATUS smb1_strip_dfs_path(TALLOC_CTX *mem_ctx,
                             uint32_t *ucf_flags,
                             char **in_path);
index 2d70720c7c92427a37bb30501fcbd4cf24da28c2..85d057386d5258075a41a26845798ece135a8ecf 100644 (file)
@@ -248,6 +248,11 @@ NTSTATUS check_path_syntax_smb2(char *path)
        return check_path_syntax_internal(path, false);
 }
 
+NTSTATUS check_path_syntax_smb2_posix(char *path)
+{
+       return check_path_syntax_internal(path, true);
+}
+
 /****************************************************************************
  SMB2-only code to strip an MSDFS prefix from an incoming pathname.
 ****************************************************************************/