* DLIST_ADD_END) as NT ACLs are order dependent.
*/
- if (fsp->is_directory) {
+ if (fsp->fsp_flags.is_directory) {
/*
* We can only add to the default POSIX ACE list if the ACE is
canon_ace **ppdir_ace,
const struct security_acl *dacl)
{
- bool all_aces_are_inherit_only = (fsp->is_directory ? True : False);
+ bool all_aces_are_inherit_only = (fsp->fsp_flags.is_directory);
canon_ace *file_ace = NULL;
canon_ace *dir_ace = NULL;
canon_ace *current_ace = NULL;
}
}
- if (fsp->is_directory && all_aces_are_inherit_only) {
+ if (fsp->fsp_flags.is_directory && all_aces_are_inherit_only) {
/*
* Windows 2000 is doing one of these weird 'inherit acl'
* traverses to conserve NTFS ACL resources. Just pretend
&file_ace,
false,
fsp->conn->params,
- fsp->is_directory,
+ fsp->fsp_flags.is_directory,
pfile_owner_sid,
pfile_grp_sid,
pst);
&dir_ace,
true,
fsp->conn->params,
- fsp->is_directory,
+ fsp->fsp_flags.is_directory,
pfile_owner_sid,
pfile_grp_sid,
pst);
* Finally apply it to the file or directory.
*/
- if(default_ace || fsp->is_directory || fsp->fh->fd == -1) {
+ if (default_ace || fsp->fsp_flags.is_directory || fsp->fh->fd == -1) {
if (SMB_VFS_SYS_ACL_SET_FILE(conn, fsp->fsp_name,
the_acl_type, the_acl) == -1) {
/*
/* The owner must have at least read access. */
*posix_perms |= S_IRUSR;
- if (fsp->is_directory)
+ if (fsp->fsp_flags.is_directory)
*posix_perms |= (S_IWUSR|S_IXUSR);
DEBUG(10,("convert_canon_ace_to_posix_perms: converted u=%o,g=%o,w=%o "
fsp_str_dbg(fsp)));
/* can it happen that fsp_name == NULL ? */
- if (fsp->is_directory || fsp->fh->fd == -1) {
+ if (fsp->fsp_flags.is_directory || fsp->fh->fd == -1) {
status = posix_get_nt_acl(fsp->conn, fsp->fsp_name,
security_info, mem_ctx, ppdesc);
TALLOC_FREE(frame);
}
}
- if (acl_perms && acl_set_support && fsp->is_directory) {
+ if (acl_perms && acl_set_support && fsp->fsp_flags.is_directory) {
if (dir_ace_list) {
if (set_acl_as_root) {
become_root();
NTSTATUS status;
int ret;
- if (!fsp->is_directory) {
+ if (!fsp->fsp_flags.is_directory) {
return NT_STATUS_INVALID_HANDLE;
}
int ret;
/* This ensures that we also consider the default ACL */
- if (fsp->is_directory || fsp->fh->fd == -1) {
+ if (fsp->fsp_flags.is_directory || fsp->fh->fd == -1) {
return posix_sys_acl_blob_get_file(handle,
fsp->fsp_name,
mem_ctx,