From: Jeremy Allison Date: Wed, 9 Jun 2021 19:15:42 +0000 (-0700) Subject: s3: smbd: Make change_file_owner_to_parent() static. X-Git-Tag: tevent-0.11.0~326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6f6e5f7eb9943486ca6964777d981aeae7919b7;p=thirdparty%2Fsamba.git s3: smbd: Make change_file_owner_to_parent() static. Only used inside open.c. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 1ab8c668cfa..32672373646 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -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) { diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index e10ffa5110e..488a0745c9d 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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,