summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-09-13 15:35:21 -0700
committerJeremy Allison <jra@samba.org>2012-09-14 22:54:29 +0200
commit1e34d584393c09a43bf0226bebc0ae0f675e57ae (patch)
tree7b1968469ba9d6891cef2f2ef714377ddec1daaf
parentb66bcab58ce73f86424b9a6ffbf9d3634e42f8ae (diff)
downloadsamba-1e34d584393c09a43bf0226bebc0ae0f675e57ae.tar.gz
samba-1e34d584393c09a43bf0226bebc0ae0f675e57ae.tar.bz2
samba-1e34d584393c09a43bf0226bebc0ae0f675e57ae.zip
Add "backup_intent" bool.
-rw-r--r--source3/smbd/dir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index cb27110f26..b212c38dd3 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,