diff options
Diffstat (limited to 'fs/fuse/dir.c')
-rw-r--r-- | fs/fuse/dir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 9ee2a6bbfa37..8ea4ea13ec5f 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
@@ -1054,8 +1054,10 @@ static int fuse_getattr(struct vfsmount *mnt, struct dentry *entry, | |||
1054 | if (fi->i_time < get_jiffies_64()) | 1054 | if (fi->i_time < get_jiffies_64()) |
1055 | err = fuse_do_getattr(inode); | 1055 | err = fuse_do_getattr(inode); |
1056 | 1056 | ||
1057 | if (!err) | 1057 | if (!err) { |
1058 | generic_fillattr(inode, stat); | 1058 | generic_fillattr(inode, stat); |
1059 | stat->mode = fi->orig_i_mode; | ||
1060 | } | ||
1059 | 1061 | ||
1060 | return err; | 1062 | return err; |
1061 | } | 1063 | } |