From d70de0776b9d30f72032900d5f58624998784850 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 15 Apr 2013 11:36:30 +0200 Subject: [PATCH] smbd: Convert set_create_timespec_ea to synthetic_smb_fname Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/smbd/dosmode.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index 93eddbb865d..19b7675a542 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -1050,8 +1050,7 @@ NTSTATUS set_create_timespec_ea(connection_struct *conn, const struct smb_filename *psmb_fname, struct timespec create_time) { - NTSTATUS status; - struct smb_filename *smb_fname = NULL; + struct smb_filename *smb_fname; uint32_t dosmode; int ret; @@ -1059,13 +1058,11 @@ NTSTATUS set_create_timespec_ea(connection_struct *conn, return NT_STATUS_OK; } - status = create_synthetic_smb_fname(talloc_tos(), - psmb_fname->base_name, - NULL, &psmb_fname->st, - &smb_fname); + smb_fname = synthetic_smb_fname(talloc_tos(), psmb_fname->base_name, + NULL, &psmb_fname->st); - if (!NT_STATUS_IS_OK(status)) { - return status; + if (smb_fname == NULL) { + return NT_STATUS_NO_MEMORY; } dosmode = dos_mode(conn, smb_fname); -- 2.11.4.GIT