mystikos icon indicating copy to clipboard operation
mystikos copied to clipboard

stat on /dev/null should indicate S_IFCHR

Open mikbras opened this issue 3 years ago • 0 comments

The following libc test fails because stat on /dev/null should set S_IFCHR bit in st_mode.

$ make one TEST=/src/functional/stat.exe
/home/mike/mystikos/build/bin/myst exec-sgx rootfs --memory-size=256m /src/functional/stat.exe
src/functional/stat.c:28: S_ISCHR(st.st_mode) failed:
Makefile:66: recipe for target 'one' failed
make: *** [one] Error 1

mikbras avatar Sep 13 '21 19:09 mikbras