diff options
author | Volker Lendecke <vl@samba.org> | 2013-04-11 16:22:38 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-04-17 14:49:56 -0700 |
commit | 10f45a16b20204d79e1f6a24724da01137f30e60 (patch) | |
tree | f1b5affd3fe53ab819b09b4897f4288ed3c10b7d /source3 | |
parent | 988a341d25bf76e80c8ad73c668200869fae6774 (diff) | |
download | samba-10f45a16b20204d79e1f6a24724da01137f30e60.tar.gz samba-10f45a16b20204d79e1f6a24724da01137f30e60.tar.bz2 samba-10f45a16b20204d79e1f6a24724da01137f30e60.zip |
smbd: Convert smbd_dirptr_get_entry to cp_smb_filename
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/dir.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index a21a33ee47..f1a08bb34a 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -1045,7 +1045,6 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx, struct smb_filename smb_fname; uint32_t mode = 0; bool ok; - NTSTATUS status; cur_offset = dptr_TellDir(dirptr); prev_offset = cur_offset; @@ -1141,9 +1140,9 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx, TALLOC_FREE(dname); - status = copy_smb_filename(ctx, &smb_fname, _smb_fname); + *_smb_fname = cp_smb_filename(ctx, &smb_fname); TALLOC_FREE(pathreal); - if (!NT_STATUS_IS_OK(status)) { + if (*_smb_fname == NULL) { return false; } *_fname = fname; |