diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/9pfuse/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/9pfuse/main.c b/src/cmd/9pfuse/main.c index cbce3ffd..a3662898 100644 --- a/src/cmd/9pfuse/main.c +++ b/src/cmd/9pfuse/main.c @@ -505,7 +505,9 @@ fusesetattr(FuseMsg *m) if(in->valid&FATTR_MTIME) d.mtime = in->mtime; if(in->valid&FATTR_MODE) - d.mode = in->mode; + d.mode = in->mode & 0777; + if((in->mode&S_IFMT) == S_IFDIR) + d.mode |= DMDIR; if((in->valid&FATTR_UID) || (in->valid&FATTR_GID)){ /* * I can't be bothered with these yet. |