VirtualBox

儲存庫 vbox 的更動 51713


忽略:
時間撮記:
2014-6-24 下午02:45:44 (11 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
94498
訊息:

Runtime/unzipcmd: fixed comments; use the attributes provided by the object information

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/common/zip/unzipcmd.cpp

    r51696 r51713  
    7474    const char * const *papszFiles;
    7575} RTZIPUNZIPCMDOPS;
    76 /** Pointer to the IPRT tar options. */
     76/** Pointer to the UNZIP options. */
    7777typedef RTZIPUNZIPCMDOPS *PRTZIPUNZIPCMDOPS;
    7878
    7979/**
    80  * Callback used by rtZipTarDoWithMembers
     80 * Callback used by rtZipUnzipDoWithMembers
    8181 *
    8282 * @returns rcExit or RTEXITCODE_FAILURE.
    83  * @param   pOpts               The tar options.
    84  * @param   hVfsObj             The tar object to display
     83 * @param   pOpts               The Unzip options.
     84 * @param   hVfsObj             The Unzip object to display
    8585 * @param   pszName             The name.
    8686 * @param   rcExit              The current exit code.
     
    128128     */
    129129    uint32_t fOpen = RTFILE_O_READWRITE | RTFILE_O_DENY_WRITE | RTFILE_O_CREATE_REPLACE | RTFILE_O_ACCESS_ATTR_DEFAULT
    130                    | ((RTFS_UNIX_IWUSR | RTFS_UNIX_IRUSR) << RTFILE_O_CREATE_MODE_SHIFT);
     130                   | (pUnixInfo->Attr.fMode << RTFILE_O_CREATE_MODE_SHIFT);
    131131    RTFILE hFile;
    132132    int rc = RTFileOpen(&hFile, pszDst, fOpen);
     
    275275    RTVfsIoStrmRelease(hVfsIos);
    276276    if (RT_FAILURE(rc))
    277         return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to open tar filesystem stream: %Rrc", rc);
     277        return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to open pkzip filesystem stream: %Rrc", rc);
    278278
    279279    return RTEXITCODE_SUCCESS;
     
    285285 *
    286286 * @returns The appropriate exit code.
    287  * @param   pOpts               The tar options.
     287 * @param   pOpts               The Unzip options.
    288288 * @param   pfnCallback         The command specific callback.
    289289 */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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