From: Jeremy Allison Date: Thu, 10 Jun 2021 17:55:30 +0000 (-0700) Subject: smbd: remove more dead code from dos_mode_at_vfs_get_dosmode_done() X-Git-Tag: tevent-0.11.0~432 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=210e7628ac4c28743070641b8ecfd910ecae4931;p=thirdparty%2Fsamba.git smbd: remove more dead code from dos_mode_at_vfs_get_dosmode_done() Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index d9ea80c5306..c4c8be0b722 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -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;