Ticket #310: pathconf.diff

File pathconf.diff, 688 bytes (added by KO Myung-Hun, 10 years ago)

patch for pathconf()

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

    diff --git a/src/emx/src/lib/sys/b_fsPathConf.c b/src/emx/src/lib/sys/b_fsPathConf.c
    index 65c8617..a5636ed 100644
    a b int __libc_Back_fsPathConf(const char *pszPath, int iName, long *plValue)  
    5050     * function.
    5151     */
    5252    char szNativePath[PATH_MAX];
    53     int rc = __libc_back_fsResolve(pszPath, BACKFS_FLAGS_RESOLVE_FULL, &szNativePath[0], NULL);
     53    int rc = __libc_back_fsResolve(pszPath, BACKFS_FLAGS_RESOLVE_FULL | BACKFS_FLAGS_RESOLVE_DIR_MAYBE, &szNativePath[0], NULL);
    5454    if (!rc)
    5555    {
    5656        __LIBC_PFSINFO pFsInfo = __libc_back_fsInfoObjByPath(szNativePath);