commit | 94ed76ad4ae5c44a5b087b64f5dbf325f892f503 | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <miklos@szeredi.hu> | Mon Jul 26 19:38:45 2004 +0000 |
committer | Miklos Szeredi <miklos@szeredi.hu> | Mon Jul 26 19:38:45 2004 +0000 |
tree | b34731128ec2ff287979c57f0fa4b09e5bef8b5b | |
parent | 209f5d053bae91fe404a0d08aaf5bb0be1d614f0 [diff] [blame] |
fix
diff --git a/kernel/dir.c b/kernel/dir.c index 7a8567c..87dec6a 100644 --- a/kernel/dir.c +++ b/kernel/dir.c
@@ -762,6 +762,11 @@ int err; int is_truncate = 0; + if (fc->flags & FUSE_DEFAULT_PERMISSIONS) { + err = inode_change_ok(inode, attr); + if (err) + return err; + } if (attr->ia_valid & ATTR_SIZE) { unsigned long limit;