]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Make get_relative_fid_filename() static to open.c
authorVolker Lendecke <vl@samba.org>
Wed, 3 Jul 2019 13:33:02 +0000 (15:33 +0200)
committerRalph Boehme <slow@samba.org>
Mon, 8 Jul 2019 16:22:37 +0000 (16:22 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/open.c
source3/smbd/proto.h

index c15e8f67d90473aeb7ee1f96122e2c66c638f1ea..a598b3dd03f3d20939dd49f18dedf2c3ca046b8c 100644 (file)
@@ -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;
index 076702feca539e4349b11fcc366642a43d7ebdaf..37eeb9f31ca4345d7a606fa8e6b7fa7eb3bbc019 100644 (file)
@@ -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,