We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#include <dirent.h> #include <stdio.h> #include <errno.h> int main(int argc, char **argv) { DIR *d; char * target = "."; if (argc == 2) { target = argv[1]; } struct dirent *dir; d = opendir(target); if (d) { while ((dir = readdir(d)) != NULL) { printf("%s\n", dir->d_name); } printf("errno: %d\n", errno); closedir(d); } return(0); }
This is a source code first mentioned in wasmtime issues NO.2493. My project files are as follows: wasmtime-2493.zip
echo "`wasmer -V` | `rustc -V` | `uname -m`" wasmer 2.3.0 | rustc 1.62.0 (a8314ef7d 2022-06-27) | x86_64
wasmer run ls.wasm --dir=./testfolder -- testfolder | wc -l
When I compile using g++, the program results in the following
203
201
The text was updated successfully, but these errors were encountered:
This indeed seems like a bug (this is how wasmtime fixed it: bytecodealliance/wasmtime#2493)
We'll work on a fix
Sorry, something went wrong.
Added '.' and '..' special folder t WASI fd_readdir return (for #3033)
fc6936d
Merge pull request #3065 from wasmerio/fix_add_special_folders_to_rea…
e2de53c
…ddir Added '.' and '..' special folder t WASI fd_readdir return (for #3033)
Should be fixed in current master, can you check @abc767234318 so the ticket can be closed?
Fixed on my side, closing the ticket now.
0694d0c
ptitSeb
No branches or pull requests
Describe the bug
This is a source code first mentioned in wasmtime issues NO.2493.
My project files are as follows:
wasmtime-2493.zip
Steps to reproduce
Expected behavior
When I compile using g++, the program results in the following
Actual behavior
The text was updated successfully, but these errors were encountered: