Univention Bugzilla – Attachment #5843: 20_update_mtime.patch for bug #34431
.special = NULL,
.enum_list = NULL
},
{
.label = "acl xattr update mtime",
.type = P_BOOL,
.p_class = P_LOCAL,
.offset = LOCAL_VAR(bAclXattrUpdateMtime),
.enum_list = NULL,
.flags = FLAG_ADVANCED | FLAG_SHARE,
{NULL, P_BOOL, P_NONE, 0, NULL, NULL, 0}
};
.ismb_encrypt = SMB_SIGNING_DEFAULT,
.bKernelShareModes = true,
.bDurableHandles = true,
.bAclXattrUpdateMtime = false,
.param_opt = NULL,
.dummy = ""
FN_LOCAL_PARM_BOOL(change_notify, bChangeNotify)
FN_LOCAL_PARM_BOOL(kernel_change_notify, bKernelChangeNotify)
FN_LOCAL_BOOL(durable_handles, bDurableHandles)
FN_LOCAL_BOOL(acl_xattr_update_mtime, bAclXattrUpdateMtime)
FN_GLOBAL_BOOL(allow_insecure_widelinks, bAllowInsecureWidelinks)
FN_GLOBAL_BOOL(allow_trusted_domains, bAllowTrustedDomains)
}
if (lp_acl_xattr_update_mtime(SNUM(handle->conn))) {
DEBUG(10,("fset_nt_acl_xattr: updating mtime of %s (fd: %d)\n",
fsp_str_dbg(fsp), fsp->fh->fd));
if (fsp->fh->fd != -1) {
ret = futimes(fsp->fh->fd, NULL);
} else {
ret = utime(fsp->fsp_name->base_name, NULL);
if (ret != 0) {
DEBUG(10,("fset_nt_acl_xattr: error updating mtime: %s\n",
strerror(errno)));
/* Get the full underlying sd, then hash. */
status = SMB_VFS_NEXT_FGET_NT_ACL(handle,
fsp,