mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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.
This commit is contained in:
parent
89c55485c3
commit
3ddd9916f5
@ -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.
|
||||
****************************************************************************/
|
||||
|
@ -205,6 +205,8 @@ void dptr_SeekDir(struct dptr_struct *dptr, long offset);
|
||||
long dptr_TellDir(struct dptr_struct *dptr);
|
||||
bool dptr_has_wild(struct dptr_struct *dptr);
|
||||
int dptr_dnum(struct dptr_struct *dptr);
|
||||
bool dptr_get_priv(struct dptr_struct *dptr);
|
||||
void dptr_set_priv(struct dptr_struct *dptr);
|
||||
char *dptr_ReadDirName(TALLOC_CTX *ctx,
|
||||
struct dptr_struct *dptr,
|
||||
long *poffset,
|
||||
|
Loading…
Reference in New Issue
Block a user