Ticket #74: fs.diff

File fs.diff, 740 bytes (added by KO Myung-Hun, 5 years ago)

Patch calculating inode whenever stat()ed.

  • src/emx/src/lib/sys/fs.c

    diff --git a/src/emx/src/lib/sys/fs.c b/src/emx/src/lib/sys/fs.c
    index f3751607..b365e20e 100755
    a b int __libc_back_fsUnixAttribsGet(int hFile, const char *pszNativePath, struct st 
    17861786                    {
    17871787                        uint64_t u64 = *(uint64_t *)++pusType;
    17881788                        if (COMPARE_EANAME(__libc_gszInoEA))
    1789                             pStat->st_ino = u64;
     1789                            pStat->st_ino = 0; /* Always calc st_ino */
    17901790                        else
    17911791                            LIBC_ASSERTM_FAILED("Huh?!? got an ea named '%s', namelen=%d! u64=%#llx (%lld)\n", pFea2->szName, pFea2->cbName, u64, u64);
    17921792                    }