From 1e34d584393c09a43bf0226bebc0ae0f675e57ae Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 13 Sep 2012 15:35:21 -0700 Subject: [PATCH] Add "backup_intent" bool. --- source3/smbd/dir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index cb27110f26b..b212c38dd39 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -510,6 +510,7 @@ NTSTATUS dptr_create(connection_struct *conn, dir_hnd = OpenDir_fsp(NULL, conn, fsp, wcard, attr); } else { int ret; + bool backup_intent = (req && req->priv_paths); struct smb_filename *smb_dname = NULL; NTSTATUS status = create_synthetic_smb_fname(talloc_tos(), path, @@ -536,7 +537,7 @@ NTSTATUS dptr_create(connection_struct *conn, if (!NT_STATUS_IS_OK(status)) { return status; } - if (req && req->priv_paths) { + if (backup_intent) { dir_hnd = open_dir_with_privilege(conn, req, path, -- 2.11.4.GIT