VirtualBox

Changeset 72098 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
May 3, 2018 4:20:44 PM (7 years ago)
Author:
vboxsync
Message:

Guest Control/VBoxService: Resolved a @todo in vgsvcGstCtrlSessionHandlePathRename() (now using a dedicated flag for the actual RTPathRename call).

File:
1 edited

Legend:

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

    r72097 r72098  
    575575        if (RT_SUCCESS(rc))
    576576        {
    577 /** @todo r=bird: shouldn't you use a different variable here for the IPRT flags??? */
     577            unsigned fPathRenameFlags = 0;
     578
    578579            if (fFlags & PATHRENAME_FLAG_NO_REPLACE)
    579                 fFlags |= RTPATHRENAME_FLAGS_NO_REPLACE;
     580                fPathRenameFlags |= RTPATHRENAME_FLAGS_NO_REPLACE;
    580581
    581582            if (fFlags & PATHRENAME_FLAG_REPLACE)
    582                 fFlags |= RTPATHRENAME_FLAGS_REPLACE;
     583                fPathRenameFlags |= RTPATHRENAME_FLAGS_REPLACE;
    583584
    584585            if (fFlags & PATHRENAME_FLAG_NO_SYMLINKS)
    585                 fFlags |= RTPATHRENAME_FLAGS_NO_SYMLINKS;
    586 
    587             rc = RTPathRename(szSource, szDest, fFlags);
     586                fPathRenameFlags |= RTPATHRENAME_FLAGS_NO_SYMLINKS;
     587
     588            rc = RTPathRename(szSource, szDest, fPathRenameFlags);
    588589        }
    589590
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