# HG changeset patch # User kono # Date 1547711645 -32400 # Node ID 97a597b0afcd6ca2d6c7775709ed17e85a2d5904 # Parent ef5959682d03631553e31523b0da27d508ff6beb Linux version diff -r ef5959682d03 -r 97a597b0afcd src/vdisk.c --- a/src/vdisk.c Thu Jan 17 16:32:19 2019 +0900 +++ b/src/vdisk.c Thu Jan 17 16:54:05 2019 +0900 @@ -342,9 +342,10 @@ int j = 0; for(j = 0; j < DIR_NM ; j++) { if (j< dp->d_namlen) { - pd->dirfp[i+j] = dp->d_name[j]&0x7f; - if (j== dp->d_namlen-1) + pd->dirfp[i+j] = dp->d_name[j]&0x7f; // this is wrong but os9 does not allow 8th bit + if (j== dp->d_namlen-1 || dp->d_name[j+1]==0) { pd->dirfp[i+j] |= 0x80; // os9 EOL + } } else pd->dirfp[i+j] = 0; }