From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1A392FC4E; Fri, 24 Nov 2023 18:42:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="eLXQLj/1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C8F8C433C7; Fri, 24 Nov 2023 18:42:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700851346; bh=toMttqYUlldSm2cP7xYmVjaNgn8OxRIa8wCkfoLOUh0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eLXQLj/1jGgaitJzkmAbXd3Jvhccu7ncBN0h2HDmus+Ex1E6p693RnYHLTg/8P4Nz tTdOVBPvkDmuSOSYPVxrS0Rac6kxOEcEeQIvtzKaBqAnL+H6S9M+8oXfpFdq0UJf9F 9zwBVTXua+QSUCn9GhtmmcOkLsMfZoEDV66tqslw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Howells , Micah Veilleux , Steve French Subject: [PATCH 6.5 387/491] smb3: fix touch -h of symlink Date: Fri, 24 Nov 2023 17:50:23 +0000 Message-ID: <20231124172036.224972124@linuxfoundation.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231124172024.664207345@linuxfoundation.org> References: <20231124172024.664207345@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.5-stable review patch. If anyone has any objections, please let me know. ------------------ From: Steve French commit 475efd9808a3094944a56240b2711349e433fb66 upstream. For example: touch -h -t 02011200 testfile where testfile is a symlink would not change the timestamp, but touch -t 02011200 testfile does work to change the timestamp of the target Suggested-by: David Howells Reported-by: Micah Veilleux Closes: https://bugzilla.samba.org/show_bug.cgi?id=14476 Cc: stable@vger.kernel.org Signed-off-by: Steve French Signed-off-by: Greg Kroah-Hartman --- fs/smb/client/cifsfs.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/smb/client/cifsfs.c +++ b/fs/smb/client/cifsfs.c @@ -1191,6 +1191,7 @@ const char *cifs_get_link(struct dentry const struct inode_operations cifs_symlink_inode_ops = { .get_link = cifs_get_link, + .setattr = cifs_setattr, .permission = cifs_permission, .listxattr = cifs_listxattr, };