diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-11 16:18:39 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:56 -0700 |
commit | fecf225068e1f6127f55db63a32b8f29bdae51ff (patch) | |
tree | afd14a8e3feff27c98d0800e6d3b9dd936cd43e6 | |
parent | acf70b9e068e862be40fe69d5b74da6d8728c987 (diff) | |
download | samba-fecf225068e1f6127f55db63a32b8f29bdae51ff.tar.gz samba-fecf225068e1f6127f55db63a32b8f29bdae51ff.tar.bz2 samba-fecf225068e1f6127f55db63a32b8f29bdae51ff.zip |
vfs: Convert cap_ntimes to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/modules/vfs_cap.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c index 895522b5e8..c52e30c299 100644 --- a/source3/modules/vfs_cap.c +++ b/source3/modules/vfs_cap.c @@ -305,7 +305,6 @@ static int cap_ntimes(vfs_handle_struct *handle, { struct smb_filename *smb_fname_tmp = NULL; char *cappath = NULL; - NTSTATUS status; int ret; cappath = capencode(talloc_tos(), smb_fname->base_name); @@ -316,10 +315,9 @@ static int cap_ntimes(vfs_handle_struct *handle, } /* Setup temporary smb_filename structs. */ - status = copy_smb_filename(talloc_tos(), smb_fname, - &smb_fname_tmp); - if (!NT_STATUS_IS_OK(status)) { - errno = map_errno_from_nt_status(status); + smb_fname_tmp = cp_smb_filename(talloc_tos(), smb_fname); + if (smb_fname_tmp == NULL) { + errno = ENOMEM; return -1; } |