Skip to content

Commit 475efd9

Browse files
committed
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>
1 parent 05d3ef8 commit 475efd9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/smb/client/cifsfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,7 @@ const char *cifs_get_link(struct dentry *dentry, struct inode *inode,
11911191

11921192
const struct inode_operations cifs_symlink_inode_ops = {
11931193
.get_link = cifs_get_link,
1194+
.setattr = cifs_setattr,
11941195
.permission = cifs_permission,
11951196
.listxattr = cifs_listxattr,
11961197
};

0 commit comments

Comments
 (0)