VirtualBox

Changeset 105898 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 29, 2024 8:46:43 AM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164618
Message:

VBoxService/toolbox-ls: Also emit output when working on a symlink (instead of only emitting output when following a symlink). Should fix the reading directories testcases using <= 7.0 Guest Additions and guests where /bin/ symlinks to /usr/bin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceToolBox.cpp

    r99739 r105898  
    997997        {
    998998            if (   RTFS_IS_FILE(objInfo.Attr.fMode)
    999                 || (   RTFS_IS_SYMLINK(objInfo.Attr.fMode)
    1000                     && (fFlags & VBOXSERVICETOOLBOXLSFLAG_SYMLINKS)))
    1001             {
     999                || RTFS_IS_SYMLINK(objInfo.Attr.fMode))
    10021000                rc2 = vgsvcToolboxPrintFsInfo(pszPath, strlen(pszPath), fOutputFlags, NULL, &IdCache, &objInfo);
    1003                 if (RT_SUCCESS(rc)) /* Keep initial failing rc. */
    1004                     rc = rc2;
    1005             }
    10061001            else if (RTFS_IS_DIRECTORY(objInfo.Attr.fMode))
    1007             {
    10081002                rc2 = vgsvcToolboxLsHandleDir(pszPath, fFlags, fOutputFlags, &IdCache);
    1009                 if (RT_SUCCESS(rc)) /* Keep initial failing rc. */
    1010                     rc = rc2;
    1011             }
     1003            if (RT_SUCCESS(rc)) /* Keep initial failing rc. */
     1004                rc = rc2;
    10121005        }
    10131006        else
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