git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b66bcab
)
Add "backup_intent" bool.
author
Jeremy Allison
<jra@samba.org>
Thu, 13 Sep 2012 22:35:21 +0000
(15:35 -0700)
committer
Jeremy Allison
<jra@samba.org>
Fri, 14 Sep 2012 20:54:29 +0000
(22:54 +0200)
source3/smbd/dir.c
patch
|
blob
|
history
diff --git
a/source3/smbd/dir.c
b/source3/smbd/dir.c
index cb27110f26b4b2f70d629f96f4fd7e59d4e89827..b212c38dd392b1042becad6e0d45e87b53c6d366 100644
(file)
--- 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,