VirtualBox

Ignore:
Timestamp:
Oct 26, 2022 3:44:11 PM (2 years ago)
Author:
vboxsync
Message:

Guest Control/VBoxManage: Don't bail out when copying a single file from guest to the host which does not exist on the host yet. bugref:10286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r96407 r97308  
    16921692        RTFSOBJINFO ObjInfo;
    16931693        vrc = RTPathQueryInfo(szAbsDst, &ObjInfo, RTFSOBJATTRADD_NOTHING);
    1694         if (RT_FAILURE(vrc))
    1695             return RTMsgErrorExitFailure(GuestCtrl::tr("RTPathQueryInfo failed on '%s': %Rrc"), szAbsDst, vrc);
    1696         fDstIsDir = RTFS_IS_DIRECTORY(ObjInfo.Attr.fMode);
     1694        if (RT_SUCCESS(vrc))
     1695        {
     1696            fDstIsDir = RTFS_IS_DIRECTORY(ObjInfo.Attr.fMode);
     1697        }
     1698        else if (   RT_FAILURE(vrc)
     1699                 && vrc != VERR_FILE_NOT_FOUND) /* Destination file on the host might not exist yet, which is fine. */
     1700                return RTMsgErrorExitFailure(GuestCtrl::tr("RTPathQueryInfo failed on '%s': %Rrc"), szAbsDst, vrc);
    16971701    }
    16981702    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