diff options
author | Jan Kara <jack@suse.cz> | 2010-06-15 12:19:59 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-06-15 12:19:59 -0400 |
commit | c6ac12a6159c802ae8b757dd13563564e64333df (patch) | |
tree | b5e8523173895a8d7adc4d75ebfe855ca9dbd938 /fs/ext4/acl.c | |
parent | 206f7ab4f49a2021fcb8687f25395be77711ddee (diff) |
ext4: update ctime when changing the file's permission by setfacl
ext4 didn't update the ctime of the file when its permission was
changed.
Steps to reproduce:
# touch aaa
# stat -c %Z aaa
1275289822
# setfacl -m 'u::x,g::x,o::x' aaa
# stat -c %Z aaa
1275289822 <- unchanged
But, according to the spec of the ctime, ext4 must update it.
Port of ext3 patch by Miao Xie <miaox@cn.fujitsu.com>.
CC: linux-ext4@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/acl.c')
-rw-r--r-- | fs/ext4/acl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/acl.c b/fs/ext4/acl.c index feaf498feaa6..5e2ed4504ead 100644 --- a/fs/ext4/acl.c +++ b/fs/ext4/acl.c @@ -204,6 +204,7 @@ ext4_set_acl(handle_t *handle, struct inode *inode, int type, return error; else { inode->i_mode = mode; + inode->i_ctime = ext4_current_time(inode); ext4_mark_inode_dirty(handle, inode); if (error == 0) acl = NULL; |