VirtualBox

Changeset 84760 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Jun 10, 2020 2:28:10 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138559
Message:

IPRT/tools: Avoid running into various assertions when no input files are being specified. Should fix regression from r138550.

Location:
trunk/src/VBox/Runtime/common/zip
Files:
2 edited

Legend:

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

    r84753 r84760  
    17211721    }
    17221722
    1723     if (!Opts.cFiles)
    1724         return RTMsgErrorExitFailure("No input file(s) specified");
     1723    if (!Opts.pszFile)
     1724        return RTMsgErrorExitFailure("No archive specified");
    17251725
    17261726    /*
  • trunk/src/VBox/Runtime/common/zip/unzipcmd.cpp

    r84753 r84760  
    446446    }
    447447
    448     if (!Opts.cFiles)
    449         return RTMsgErrorExit(RTEXITCODE_FAILURE, "No input file(s) specified");
     448    if (!Opts.pszFile)
     449        return RTMsgErrorExit(RTEXITCODE_FAILURE, "No input archive specified");
    450450
    451451    RTFOFF cBytes = 0;
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