smbd: make canonicalize_snapshot_path() public
authorRalph Boehme <slow@samba.org>
Sat, 2 May 2020 10:55:33 +0000 (12:55 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 5 May 2020 19:18:41 +0000 (19:18 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/filename.c
source3/smbd/proto.h

index 0a3d8f390075b32c1ffc97af383c225e055f16e4..6b3e08579abde3e4238c3b1c213a03c907e81954 100644 (file)
@@ -364,8 +364,8 @@ static NTSTATUS rearrange_snapshot_path(struct smb_filename *smb_fname,
  * instead.
  */
 
-static NTSTATUS canonicalize_snapshot_path(struct smb_filename *smb_fname,
-                                          NTTIME twrp)
+NTSTATUS canonicalize_snapshot_path(struct smb_filename *smb_fname,
+                                   NTTIME twrp)
 {
        char *startp = strchr_m(smb_fname->base_name, '@');
        char *endp = NULL;
index b5dfac548618df9bcf08f7a501a72524c9ac4176..3a3e7774f05379342bd0d9eef036faf5d050e3ff 100644 (file)
@@ -367,6 +367,8 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
                      uint32_t ucf_flags);
 NTSTATUS check_name(connection_struct *conn,
                        const struct smb_filename *smb_fname);
+NTSTATUS canonicalize_snapshot_path(struct smb_filename *smb_fname,
+                                   NTTIME twrp);
 int get_real_filename(connection_struct *conn,
                      struct smb_filename *path,
                      const char *name,