WASI: Don't grant __WASI_RIGHT_FD_FILESTAT_SET_SIZE for directories
RIGHTS_DIRECTORY_BASE should not include __WASI_RIGHT_FD_FILESTAT_SET_SIZE,
because that would imply the ability to set the size of a directory.
Via
@@ -292,7 +292,6 @@ pub const RIGHTS_DIRECTORY_BASE: __wasi_rights_t = (__WASI_RIGHT_FD_FDSTAT_SET_F
| __WASI_RIGHT_PATH_FILESTAT_SET_SIZE
| __WASI_RIGHT_PATH_FILESTAT_SET_TIMES
| __WASI_RIGHT_FD_FILESTAT_GET
- | __WASI_RIGHT_FD_FILESTAT_SET_SIZE
| __WASI_RIGHT_FD_FILESTAT_SET_TIMES
| __WASI_RIGHT_PATH_SYMLINK
| __WASI_RIGHT_PATH_UNLINK_FILE
