Mountdir has correct ownership and permissions set. Fixes https://github.com/cryfs/cryfs/issues/10
This commit is contained in:
parent
3ecbef6d11
commit
d05e3841bd
@ -103,7 +103,9 @@ void CryNode::stat(struct ::stat *result) const {
|
|||||||
if(_parent == none) {
|
if(_parent == none) {
|
||||||
//We are the root directory.
|
//We are the root directory.
|
||||||
//TODO What should we do?
|
//TODO What should we do?
|
||||||
result->st_mode = S_IFDIR;
|
result->st_uid = getuid();
|
||||||
|
result->st_gid = getgid();
|
||||||
|
result->st_mode = S_IFDIR | S_IRUSR | S_IWUSR | S_IXUSR;
|
||||||
result->st_size = fsblobstore::DirBlob::DIR_LSTAT_SIZE;
|
result->st_size = fsblobstore::DirBlob::DIR_LSTAT_SIZE;
|
||||||
} else {
|
} else {
|
||||||
(*_parent)->statChild(_key, result);
|
(*_parent)->statChild(_key, result);
|
||||||
|
Loading…
Reference in New Issue
Block a user