VirtualBox

Changeset 71670 in vbox


Ignore:
Timestamp:
Apr 5, 2018 8:27:44 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699 Create directories with a correct mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestFileTable.cpp

    r71654 r71670  
    284284    QVector<KDirectoryCreateFlag> flags(KDirectoryCreateFlag_None);
    285285
    286     m_comGuestSession.DirectoryCreate(newDirectoryPath, 777/*aMode*/, flags);
     286    m_comGuestSession.DirectoryCreate(newDirectoryPath, 0/*aMode*/, flags);
    287287    if (!m_comGuestSession.isOk())
    288288    {
     
    319319        QVector<KFileCopyFlag> flags(KFileCopyFlag_FollowLinks);
    320320        /* API expects a full file path as destionation: */
    321         QString destinatioFilePath =  UIPathOperations::mergePaths(hostDestinationPath, UIPathOperations::getObjectName(guestSourcePath));
     321        QString destinatioFilePath =  UIPathOperations::addTrailingDelimiters(hostDestinationPath);
    322322        /** @todo listen to CProgress object to monitor copy operation: */
    323323        /*CProgress comProgress =*/ m_comGuestSession.FileCopyFromGuest(guestSourcePath, destinatioFilePath, flags);
     
    349349        QString destinationFilePath =  UIPathOperations::addTrailingDelimiters(guestDestinationPath);
    350350        /** @todo listen to CProgress object to monitor copy operation: */
    351         /*CProgress comProgress =*/ m_comGuestSession.FileCopyToGuest(hostSourcePath, "/home/vbox/temp/", flags);
     351        /*CProgress comProgress =*/ m_comGuestSession.FileCopyToGuest(hostSourcePath, destinationFilePath, flags);
    352352    }
    353353    else if(hostFileInfo.isDir())
     
    355355
    356356        QVector<KDirectoryCopyFlag> aFlags(KDirectoryCopyFlag_CopyIntoExisting);
     357        QString destinationFilePath =  UIPathOperations::addTrailingDelimiters(guestDestinationPath);
    357358        /** @todo listen to CProgress object to monitor copy operation: */
    358         /*CProgress comProgress = */ m_comGuestSession.DirectoryCopyToGuest(hostSourcePath, guestDestinationPath, aFlags);
     359        /*CProgress comProgress = */ m_comGuestSession.DirectoryCopyToGuest(hostSourcePath, destinationFilePath, aFlags);
    359360    }
    360361    if (!m_comGuestSession.isOk())
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