Skip to content

Commit 475efd9

Browse files
author
Steve French
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 <[email protected]> Reported-by: Micah Veilleux <[email protected]> Closes: https://bugzilla.samba.org/show_bug.cgi?id=14476 Cc: [email protected] Signed-off-by: Steve French <[email protected]>
1 parent 05d3ef8 commit 475efd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)