cosmopolitan icon indicating copy to clipboard operation
cosmopolitan copied to clipboard

cosmo compile fails on filesystem shfs

Open meiskam opened this issue 3 years ago • 0 comments

mkdir_test.com fails when compiling cosmopolitan, in TearDownTmpDir > rmrf > rmrfdir, when compiling on filesystem 'shfs', which does not support dirent > d_type field, from getdents()

rmrfdir() should fall back to using stat() (or similar) when d_type is DT_UNKNOWN

https://github.com/jart/cosmopolitan/blob/d6a039821f927cc81b71e11f21599ff93e1fed62/libc/x/rmrf.c#L41-L45

meiskam avatar Nov 28 '21 00:11 meiskam