VirtualBox

Changeset 104552 in vbox


Ignore:
Timestamp:
May 8, 2024 12:56:58 PM (7 months ago)
Author:
vboxsync
Message:

Runtime/common/zip/unzipcmd.cpp: Properly propagate the exit status code when returning, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/zip/unzipcmd.cpp

    r98103 r104552  
    341341                RTFOFF cBytes = 0;
    342342                rcExit = pfnCallback(pOpts, hVfsObj, pszName, rcExit, &cBytes);
     343                if (rcExit != RTEXITCODE_SUCCESS)
     344                    break;
    343345
    344346                cBytesSum += cBytes;
     
    358360        for (uint32_t iFile = 0; iFile <pOpts->cFiles; iFile++)
    359361            if (!ASMBitTest(pbmFound, iFile))
    360             {
    361                 RTMsgError("%s: Was not found in the archive", pOpts->papszFiles[iFile]);
    362                 rcExit = RTEXITCODE_FAILURE;
    363             }
     362                rcExit = RTMsgErrorExitFailure("%s: Was not found in the archive", pOpts->papszFiles[iFile]);
    364363
    365364        RTVfsFsStrmRelease(hVfsFssIn);
     
    371370    *pcBytes = cBytesSum;
    372371
    373     return RTEXITCODE_SUCCESS;
     372    return rcExit;
    374373}
    375374
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