From a33418c34abd26f8761d6e03c7598d68ef0ce7a1 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Fri, 18 Dec 2020 16:34:25 -0800 Subject: [PATCH] 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. --- crates/test-programs/wasi-tests/src/bin/path_filestat.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crates/test-programs/wasi-tests/src/bin/path_filestat.rs b/crates/test-programs/wasi-tests/src/bin/path_filestat.rs index bef9ff029e..691fc7b97f 100644 --- a/crates/test-programs/wasi-tests/src/bin/path_filestat.rs +++ b/crates/test-programs/wasi-tests/src/bin/path_filestat.rs @@ -9,11 +9,6 @@ unsafe fn test_path_filestat(dir_fd: wasi::Fd) { 0, "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. let file_fd = wasi::path_open(