Don't error when trying to change owner/group of root dir, instead just ignore it
This commit is contained in:
parent
706ef263c9
commit
b0077e7a81
@ -185,7 +185,7 @@ void CryNode::chmod(mode_t mode) {
|
||||
if (_parent == none) {
|
||||
//We are the root direcory.
|
||||
//TODO What should we do?
|
||||
throw FuseErrnoException(EIO);
|
||||
return;
|
||||
}
|
||||
(*_parent)->chmodChild(_blockId, mode);
|
||||
}
|
||||
@ -195,7 +195,7 @@ void CryNode::chown(uid_t uid, gid_t gid) {
|
||||
if (_parent == none) {
|
||||
//We are the root direcory.
|
||||
//TODO What should we do?
|
||||
throw FuseErrnoException(EIO);
|
||||
return;
|
||||
}
|
||||
(*_parent)->chownChild(_blockId, uid, gid);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user