VirtualBox

Changeset 107674 in vbox


Ignore:
Timestamp:
Jan 10, 2025 3:50:53 PM (2 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166766
Message:

src/VBox/Main/src-client/GuestSessionImplTasks.cpp: Fixed warnings found by Parfait (unread variable). Handling symbolic links is not implemented yet anyway. jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r107666 r107674  
    16941694
    16951695        bool fCopyIntoExisting;
    1696         bool fFollowSymlinks;
    1697 
    16981696        if (pList->mSourceSpec.enmType == FsObjType_Directory)
    1699         {
    17001697            fCopyIntoExisting = RT_BOOL(pList->mSourceSpec.fDirCopyFlags & DirectoryCopyFlag_CopyIntoExisting);
    1701             fFollowSymlinks   = RT_BOOL(pList->mSourceSpec.fDirCopyFlags & DirectoryCopyFlag_FollowLinks);
    1702         }
    17031698        else if (pList->mSourceSpec.enmType == FsObjType_File)
    1704         {
    17051699            fCopyIntoExisting = !RT_BOOL(pList->mSourceSpec.fFileCopyFlags & FileCopyFlag_NoReplace);
    1706             fFollowSymlinks   = RT_BOOL(pList->mSourceSpec.fFileCopyFlags & FileCopyFlag_FollowLinks);
    1707         }
    17081700        else
    17091701            AssertFailedBreakStmt(vrc = VERR_NOT_IMPLEMENTED);
     
    17541746        {
    17551747            LogFlowFunc(("Directory: fDirCopyFlags=%#x, fCopyIntoExisting=%RTbool, fFollowSymlinks=%RTbool -> fDstExist=%RTbool (%s)\n",
    1756                          pList->mSourceSpec.fDirCopyFlags, fCopyIntoExisting, fFollowSymlinks,
     1748                         pList->mSourceSpec.fDirCopyFlags, fCopyIntoExisting,
    17571749                         fDstExists, GuestBase::fsObjTypeToStr(GuestBase::fileModeToFsObjType(dstFsObjInfo.Attr.fMode))));
    17581750
     
    18721864        {
    18731865            LogFlowFunc(("File: fFileCopyFlags=%#x, fCopyIntoExisting=%RTbool, fFollowSymlinks=%RTbool -> fDstExist=%RTbool (%s)\n",
    1874                          pList->mSourceSpec.fFileCopyFlags, fCopyIntoExisting, fFollowSymlinks,
     1866                         pList->mSourceSpec.fFileCopyFlags, fCopyIntoExisting,
    18751867                         fDstExists, GuestBase::fsObjTypeToStr(GuestBase::fileModeToFsObjType(dstFsObjInfo.Attr.fMode))));
    18761868
     
    28132805{
    28142806    int vrc = VINF_SUCCESS;
    2815     HRESULT hrc;
    28162807
    28172808    if (osType == eOSType_Linux)
     
    28392830            vrc = runFileOnGuest(pSession, procInfo, true /* fSilent */);
    28402831            if (RT_FAILURE(vrc))
    2841                 hrc = setUpdateErrorMsg(VBOX_E_GSTCTL_GUEST_ERROR,
    2842                                         Utf8StrFmt(tr("Files were installed, but user services were not reloaded automatically. "
    2843                                                       "Please consider rebooting the guest")));
     2832                setUpdateErrorMsg(VBOX_E_GSTCTL_GUEST_ERROR,
     2833                                  Utf8StrFmt(tr("Files were installed, but user services were not reloaded automatically. "
     2834                                                "Please consider rebooting the guest")));
    28442835        }
    28452836        else
    2846             hrc = setUpdateErrorMsg(VBOX_E_GSTCTL_GUEST_ERROR,
    2847                                     Utf8StrFmt(tr("Files were installed, but kernel modules were not reloaded automatically. "
    2848                                                   "Please consider rebooting the guest")));
     2837            setUpdateErrorMsg(VBOX_E_GSTCTL_GUEST_ERROR,
     2838                              Utf8StrFmt(tr("Files were installed, but kernel modules were not reloaded automatically. "
     2839                                            "Please consider rebooting the guest")));
    28492840    }
    28502841
Note: See TracChangeset for help on using the changeset viewer.

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