summaryrefslogtreecommitdiff
path: root/source3/smbd/dir.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-04-15 11:54:46 +0200
committerJeremy Allison <jra@samba.org>2013-04-17 14:50:03 -0700
commit940ad94906129cf5f65125961470a3a5f41ea78f (patch)
tree9edcf1363854014a68c35969eadf1434361de4cd /source3/smbd/dir.c
parent59cfbc7925ee93ef963780085fa9c2c0e08e7421 (diff)
downloadsamba-940ad94906129cf5f65125961470a3a5f41ea78f.tar.gz
samba-940ad94906129cf5f65125961470a3a5f41ea78f.tar.bz2
samba-940ad94906129cf5f65125961470a3a5f41ea78f.zip
smbd: Convert is_visible_file to synthetic_smb_fname
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/dir.c')
-rw-r--r--source3/smbd/dir.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index 022e5d1f4d..0c40a509c4 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -1354,7 +1354,6 @@ bool is_visible_file(connection_struct *conn, const char *dir_path,
bool hide_special = lp_hide_special_files(SNUM(conn));
char *entry = NULL;
struct smb_filename *smb_fname_base = NULL;
- NTSTATUS status;
bool ret = false;
if ((strcmp(".",name) == 0) || (strcmp("..",name) == 0)) {
@@ -1375,9 +1374,9 @@ bool is_visible_file(connection_struct *conn, const char *dir_path,
}
/* Create an smb_filename with stream_name == NULL. */
- status = create_synthetic_smb_fname(talloc_tos(), entry, NULL,
- pst, &smb_fname_base);
- if (!NT_STATUS_IS_OK(status)) {
+ smb_fname_base = synthetic_smb_fname(talloc_tos(), entry, NULL,
+ pst);
+ if (smb_fname_base == NULL) {
ret = false;
goto out;
}