VirtualBox

Changeset 46013 in vbox


Ignore:
Timestamp:
May 13, 2013 11:52:15 AM (12 years ago)
Author:
vboxsync
Message:

RTDirQueryUnknownType* adjustment.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/dir.h

    r46008 r46013  
    421421 *                          compose this, it's NOT sufficient to pass
    422422 *                          RTDIRENTRY::szName!
     423 * @param   fFollowSymLinks Whether to follow symbolic links or not.
    423424 * @param   penmType        Pointer to the RTDIRENTRY::enmType member.  If this
    424425 *                          is not RTDIRENTRYTYPE_UNKNOWN, the function will
     
    428429 *                          unchanged.
    429430 */
    430 RTDECL(int) RTDirQueryUnknownType(const char *pszComposedName, RTDIRENTRYTYPE *penmType);
     431RTDECL(int) RTDirQueryUnknownType(const char *pszComposedName, bool fFollowSymLinks, RTDIRENTRYTYPE *penmType);
    431432
    432433/**
     
    438439 *                          compose this, it's NOT sufficient to pass
    439440 *                          RTDIRENTRY::szName!
     441 * @param   fFollowSymLinks Whether to follow symbolic links or not.
    440442 * @param   penmType        Pointer to the RTDIRENTRY::enmType member or
    441443 *                          similar.  Will NOT be checked on input.
    442444 * @param   pObjInfo        The object info buffer to use with RTPathQueryInfo.
    443445 */
    444 RTDECL(int) RTDirQueryUnknownTypeEx(const char *pszComposedName, RTDIRENTRYTYPE *penmType, PRTFSOBJINFO pObjInfo);
     446RTDECL(int) RTDirQueryUnknownTypeEx(const char *pszComposedName, bool fFollowSymLinks, RTDIRENTRYTYPE *penmType, PRTFSOBJINFO pObjInfo);
    445447
    446448/**
  • trunk/src/VBox/Runtime/r3/dir.cpp

    r46008 r46013  
    732732
    733733
    734 RTDECL(int) RTDirQueryUnknownTypeEx(const char *pszComposedName, RTDIRENTRYTYPE *penmType, PRTFSOBJINFO pObjInfo)
    735 {
    736     int rc = RTPathQueryInfoEx(pszComposedName, pObjInfo, RTFSOBJATTRADD_NOTHING, RTPATH_F_ON_LINK);
     734RTDECL(int) RTDirQueryUnknownTypeEx(const char *pszComposedName, bool fFollowSymLinks,
     735                                    RTDIRENTRYTYPE *penmType, PRTFSOBJINFO pObjInfo)
     736{
     737    int rc = RTPathQueryInfoEx(pszComposedName, pObjInfo, RTFSOBJATTRADD_NOTHING,
     738                               fFollowSymLinks ? RTPATH_F_FOLLOW_LINK : RTPATH_F_ON_LINK);
    737739    if (RT_FAILURE(rc))
    738740        return rc;
     
    761763
    762764
    763 RTDECL(int) RTDirQueryUnknownType(const char *pszComposedName, RTDIRENTRYTYPE *penmType)
     765RTDECL(int) RTDirQueryUnknownType(const char *pszComposedName, bool fFollowSymLinks, RTDIRENTRYTYPE *penmType)
    764766{
    765767    if (*penmType != RTDIRENTRYTYPE_UNKNOWN)
     
    767769
    768770    RTFSOBJINFO ObjInfo;
    769     return RTDirQueryUnknownTypeEx(pszComposedName, penmType, &ObjInfo);
     771    return RTDirQueryUnknownTypeEx(pszComposedName, fFollowSymLinks, penmType, &ObjInfo);
    770772}
    771773
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette