summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:36:30 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:02 -0700
commitd70de0776b9d30f72032900d5f58624998784850 (patch)
treea01c51109caecc3425a14440c30dbb13371de696 /source3/smbd
parentfb211c39dbdb026c4294ccfb42e0c648c4464a27 (diff)
downloadsamba-d70de0776b9d30f72032900d5f58624998784850.tar.gz
samba-d70de0776b9d30f72032900d5f58624998784850.tar.bz2
samba-d70de0776b9d30f72032900d5f58624998784850.zip
smbd: Convert set_create_timespec_ea to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/dosmode.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index 93eddbb865..19b7675a54 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);