From: Jeremy Allison Date: Thu, 13 Sep 2012 22:35:21 +0000 (-0700) Subject: Add "backup_intent" bool. X-Git-Url: http://git.samba.org/?a=commitdiff_plain;ds=sidebyside;h=1e34d584393c09a43bf0226bebc0ae0f675e57ae;p=metze%2Fsamba%2Fwip.git Add "backup_intent" bool. --- diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index cb27110f26b4..b212c38dd392 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,