path_filestat: remove expectation that rights_inheriting describes subdirs

if inheriting rights are for files (not subdirs) then this is incorrect.

if inheriting rights are for subdirs too, then we need to change the
implementation.
This commit is contained in:
Pat Hickey
2020-12-18 16:34:25 -08:00
parent c1919259dc
commit a33418c34a

View File

@@ -9,11 +9,6 @@ unsafe fn test_path_filestat(dir_fd: wasi::Fd) {
0, 0,
"the scratch directory should have RIGHT_PATH_FILESTAT_GET as base right", "the scratch directory should have RIGHT_PATH_FILESTAT_GET as base right",
); );
assert_ne!(
fdstat.fs_rights_inheriting & wasi::RIGHTS_PATH_FILESTAT_GET,
0,
"the scratch directory should have RIGHT_PATH_FILESTAT_GET as base right",
);
// Create a file in the scratch directory. // Create a file in the scratch directory.
let file_fd = wasi::path_open( let file_fd = wasi::path_open(