smb3: fix touch -h of symlink
authorSteve French <stfrench@microsoft.com>
Fri, 26 Jan 2024 00:53:56 +0000 (18:53 -0600)
committerSteve French <stfrench@microsoft.com>
Sat, 27 Jan 2024 06:14:27 +0000 (00:14 -0600)
commit6e6e263c6470d95a80467e4228a77e8978bdb694
tree2283cb4bbc64cfc366d7d00334282af2ffded8d4
parentadbe38afc95bae20df501c22a9d215ff3ec205ca
smb3: fix touch -h of symlink

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 <dhowells@redhat.com>
Reported-by: Micah Veilleux <micah.veilleux@iba-group.com>
Closes: https://bugzilla.samba.org/show_bug.cgi?id=14476
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c