s3: smbd: Make change_file_owner_to_parent() static.
authorJeremy Allison <jra@samba.org>
Wed, 9 Jun 2021 19:15:42 +0000 (12:15 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 18 Jun 2021 16:32:28 +0000 (16:32 +0000)
Only used inside open.c.

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

index 1ab8c668cfac2012e979daaed687e730183e659e..32672373646348479a269349139eda0e3218db6c 100644 (file)
@@ -939,7 +939,7 @@ NTSTATUS fd_close(files_struct *fsp)
  Do this by fd if possible.
 ****************************************************************************/
 
-void change_file_owner_to_parent(connection_struct *conn,
+static void change_file_owner_to_parent(connection_struct *conn,
                                 struct smb_filename *smb_fname_parent,
                                 files_struct *fsp)
 {
index e10ffa5110ea8d309a3ae4e059a131471ab1f7ec..488a0745c9dd2fda8e7d29a57d7eea4ff17d9a1f 100644 (file)
@@ -744,9 +744,6 @@ NTSTATUS fd_openat(const struct files_struct *dirfsp,
                   files_struct *fsp,
                   int flags, mode_t mode);
 NTSTATUS fd_close(files_struct *fsp);
-void change_file_owner_to_parent(connection_struct *conn,
-                                struct smb_filename *inherit_from_dir,
-                                files_struct *fsp);
 bool is_oplock_stat_open(uint32_t access_mask);
 bool is_lease_stat_open(uint32_t access_mask);
 NTSTATUS send_break_message(struct messaging_context *msg_ctx,