View | Details | Raw Unified | Return to bug 34431
Collapse All | Expand All

(-)a/lib/param/param_table.c (+9 lines)
 Lines 4365-4370    Link Here 
4365
		.special	= NULL,
4365
		.special	= NULL,
4366
		.enum_list	= NULL
4366
		.enum_list	= NULL
4367
	},
4367
	},
4368
	{
4369
		.label		= "acl xattr update mtime",
4370
		.type		= P_BOOL,
4371
		.p_class	= P_LOCAL,
4372
		.offset		= LOCAL_VAR(bAclXattrUpdateMtime),
4373
		.special	= NULL,
4374
		.enum_list	= NULL,
4375
		.flags		= FLAG_ADVANCED | FLAG_SHARE,
4376
	},
4368
4377
4369
	{NULL,  P_BOOL,  P_NONE,  0,  NULL,  NULL,  0}
4378
	{NULL,  P_BOOL,  P_NONE,  0,  NULL,  NULL,  0}
4370
};
4379
};
(-)a/source3/param/loadparm.c (+1 lines)
 Lines 279-284    Link Here 
279
	.ismb_encrypt = SMB_SIGNING_DEFAULT,
279
	.ismb_encrypt = SMB_SIGNING_DEFAULT,
280
	.bKernelShareModes = true,
280
	.bKernelShareModes = true,
281
	.bDurableHandles = true,
281
	.bDurableHandles = true,
282
	.bAclXattrUpdateMtime = false,
282
	.param_opt = NULL,
283
	.param_opt = NULL,
283
	.dummy = ""
284
	.dummy = ""
284
};
285
};
(-)a/lib/param/param_functions.c (+1 lines)
 Lines 152-157    Link Here 
152
FN_LOCAL_PARM_BOOL(change_notify, bChangeNotify)
152
FN_LOCAL_PARM_BOOL(change_notify, bChangeNotify)
153
FN_LOCAL_PARM_BOOL(kernel_change_notify, bKernelChangeNotify)
153
FN_LOCAL_PARM_BOOL(kernel_change_notify, bKernelChangeNotify)
154
FN_LOCAL_BOOL(durable_handles, bDurableHandles)
154
FN_LOCAL_BOOL(durable_handles, bDurableHandles)
155
FN_LOCAL_BOOL(acl_xattr_update_mtime, bAclXattrUpdateMtime)
155
156
156
FN_GLOBAL_BOOL(allow_insecure_widelinks, bAllowInsecureWidelinks)
157
FN_GLOBAL_BOOL(allow_insecure_widelinks, bAllowInsecureWidelinks)
157
FN_GLOBAL_BOOL(allow_trusted_domains, bAllowTrustedDomains)
158
FN_GLOBAL_BOOL(allow_trusted_domains, bAllowTrustedDomains)
(-)a/source3/modules/vfs_acl_common.c (+14 lines)
 Lines 814-819    Link Here 
814
		}
814
		}
815
	}
815
	}
816
816
817
	if (lp_acl_xattr_update_mtime(SNUM(handle->conn))) {
818
		DEBUG(10,("fset_nt_acl_xattr: updating mtime of %s (fd: %d)\n",
819
			   fsp_str_dbg(fsp), fsp->fh->fd));
820
		if (fsp->fh->fd != -1) {
821
			ret = futimes(fsp->fh->fd, NULL);
822
		} else {
823
			ret = utime(fsp->fsp_name->base_name, NULL);
824
		}
825
		if (ret != 0) {
826
			DEBUG(10,("fset_nt_acl_xattr: error updating mtime: %s\n",
827
					strerror(errno)));
828
		}
829
	}
830
817
	/* Get the full underlying sd, then hash. */
831
	/* Get the full underlying sd, then hash. */
818
	status = SMB_VFS_NEXT_FGET_NT_ACL(handle,
832
	status = SMB_VFS_NEXT_FGET_NT_ACL(handle,
819
					  fsp,
833
					  fsp,

Return to bug 34431