parent
da8a485fc1
commit
4798a8a556
1 changed files with 3 additions and 1 deletions
|
|
@ -505,7 +505,9 @@ fusesetattr(FuseMsg *m)
|
||||||
if(in->valid&FATTR_MTIME)
|
if(in->valid&FATTR_MTIME)
|
||||||
d.mtime = in->mtime;
|
d.mtime = in->mtime;
|
||||||
if(in->valid&FATTR_MODE)
|
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)){
|
if((in->valid&FATTR_UID) || (in->valid&FATTR_GID)){
|
||||||
/*
|
/*
|
||||||
* I can't be bothered with these yet.
|
* I can't be bothered with these yet.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue