VirtualBox

Changeset 49320 in vbox for trunk/src/VBox/Runtime/tools


Ignore:
Timestamp:
Oct 29, 2013 12:39:25 PM (11 years ago)
Author:
vboxsync
Message:

RTGZip.cpp: Accept zlib headers. Don't complain about EINVAL on flush (stdout, pipes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/RTGzip.cpp

    r47359 r49320  
    138138
    139139    int rc = RTVfsIoStrmFlush(*phVfsDst);
    140     if (RT_FAILURE(rc))
     140    if (RT_FAILURE(rc) && rc != VERR_INVALID_PARAMETER)
    141141        rcExit = RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to flush the output file: %Rrc", rc);
    142142    RTVfsIoStrmRelease(*phVfsDst);
     
    208208     * Attach the decompressor to the input stream.
    209209     */
     210    uint32_t fFlags = 0;
     211    fFlags |= RTZIPGZIPDECOMP_F_ALLOW_ZLIB_HDR;
    210212    RTVFSIOSTREAM hVfsGunzip;
    211     int rc = RTZipGzipDecompressIoStream(*phVfsSrc, 0 /*fFlags*/, &hVfsGunzip);
     213    int rc = RTZipGzipDecompressIoStream(*phVfsSrc, fFlags, &hVfsGunzip);
    212214    if (RT_FAILURE(rc))
    213215        return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTZipGzipDecompressIoStream failed: %Rrc", rc);
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