From: Volker Lendecke Date: Wed, 3 Jul 2019 13:33:02 +0000 (+0200) Subject: smbd: Make get_relative_fid_filename() static to open.c X-Git-Tag: samba-4.11.0rc1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81011f5ea1f411ddfae6af527230d480dc2bbbb4;p=thirdparty%2Fsamba.git smbd: Make get_relative_fid_filename() static to open.c Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index c15e8f67d90..a598b3dd03f 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -5532,11 +5532,12 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, /* * Calculate the full path name given a relative fid. */ -NTSTATUS get_relative_fid_filename(connection_struct *conn, - struct smb_request *req, - uint16_t root_dir_fid, - const struct smb_filename *smb_fname, - struct smb_filename **smb_fname_out) +static NTSTATUS get_relative_fid_filename( + connection_struct *conn, + struct smb_request *req, + uint16_t root_dir_fid, + const struct smb_filename *smb_fname, + struct smb_filename **smb_fname_out) { files_struct *dir_fsp; char *parent_fname = NULL; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 076702feca5..37eeb9f31ca 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -715,12 +715,6 @@ NTSTATUS create_file_default(connection_struct *conn, const struct smb2_create_blobs *in_context_blobs, struct smb2_create_blobs *out_context_blobs); -NTSTATUS get_relative_fid_filename(connection_struct *conn, - struct smb_request *req, - uint16_t root_dir_fid, - const struct smb_filename *smb_fname, - struct smb_filename **smb_fname_out); - /* The following definitions come from smbd/oplock.c */ uint32_t get_lease_type(const struct share_mode_data *d,