summaryrefslogtreecommitdiff
path: root/source3/smbd/dir.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-02-29 11:42:21 -0800
committerJeremy Allison <jra@samba.org>2012-02-29 17:04:39 -0800
commit3ddd9916f51f7b64527e9c33a7c3a4849c6f3017 (patch)
tree0647cd0f24cb58ed9bbd4707950e547f2e764b38 /source3/smbd/dir.c
parent89c55485c3cc6eefdd7af20f79b1d219cace5066 (diff)
downloadsamba-3ddd9916f51f7b64527e9c33a7c3a4849c6f3017.tar.gz
samba-3ddd9916f51f7b64527e9c33a7c3a4849c6f3017.tar.bz2
samba-3ddd9916f51f7b64527e9c33a7c3a4849c6f3017.zip
Add accessor functions to set a bool "priv" on a directory handle. Not yet used, but will be part of FLAG_TRANS2_FIND_BACKUP_INTENT code.
Diffstat (limited to 'source3/smbd/dir.c')
-rw-r--r--source3/smbd/dir.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index d4faf42fe0..c1a850ed32 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -64,6 +64,7 @@ struct dptr_struct {
char *path;
bool has_wild; /* Set to true if the wcard entry has MS wildcard characters in it. */
bool did_stat; /* Optimisation for non-wcard searches. */
+ bool priv; /* Directory handle opened with privilege. */
};
static struct smb_Dir *OpenDir_fsp(TALLOC_CTX *mem_ctx, connection_struct *conn,
@@ -647,6 +648,16 @@ int dptr_dnum(struct dptr_struct *dptr)
return dptr->dnum;
}
+bool dptr_get_priv(struct dptr_struct *dptr)
+{
+ return dptr->priv;
+}
+
+void dptr_set_priv(struct dptr_struct *dptr)
+{
+ dptr->priv = true;
+}
+
/****************************************************************************
Return the next visible file name, skipping veto'd and invisible files.
****************************************************************************/