smbd: remove more dead code from dos_mode_at_vfs_get_dosmode_done()
authorJeremy Allison <jra@samba.org>
Thu, 10 Jun 2021 17:55:30 +0000 (10:55 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 10 Jun 2021 20:45:31 +0000 (20:45 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dosmode.c

index d9ea80c5306a50a5dc949167ced4ef5b09aed4d5..c4c8be0b72204e948fda9aa61ad5a266adc7cd05 100644 (file)
@@ -837,7 +837,6 @@ static void dos_mode_at_vfs_get_dosmode_done(struct tevent_req *subreq)
        struct dos_mode_at_state *state =
                tevent_req_data(req,
                struct dos_mode_at_state);
-       char *path = NULL;
        struct vfs_aio_state aio_state;
        NTSTATUS status;
        bool ok;
@@ -889,14 +888,6 @@ static void dos_mode_at_vfs_get_dosmode_done(struct tevent_req *subreq)
         * Fall back to sync dos_mode() if we got NOT_IMPLEMENTED.
         */
 
-       path = talloc_asprintf(state,
-                              "%s/%s",
-                              state->dir_fsp->fsp_name->base_name,
-                              state->smb_fname->base_name);
-       if (tevent_req_nomem(path, req)) {
-               return;
-       }
-
        state->dosmode = fdos_mode(state->smb_fname->fsp);
        tevent_req_done(req);
        return;