Wireshark-commits: [Wireshark-commits] master-1.10 982393b: Report WTAP_ERR_UNSUPPORTED correctly.
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 17 Dec 2014 08:48:44 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=982393beb10d4f204d45529a7598361a5f891693
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-1.10
Repository: wireshark

Commits:

982393b by Guy Harris (guy@xxxxxxxxxxxx):

    Report WTAP_ERR_UNSUPPORTED correctly.
    
    WTAP_ERR_FILE_UNKNOWN_FORMAT is reported if the file is in a format that
    libwiretap doesn't know about (either because it's not a capture file at
    all or because it's a capture file in a format it doesn't support).
    WTAP_ERR_UNSUPPORTED is for files in a *known* format that are using
    features or file format elements (record type, link-layer header type,
    etc.) that libwireshark doesn't support.  Fix some copy-and-pasteos
    causing WTAP_ERR_UNSUPPORTED to be reported with a message appropriate
    for WTAP_ERR_FILE_UNKNOWN_FORMAT.
    
    Change-Id: Ic675ffd501c52838d8944a6c61e1b01041b73098
    Reviewed-on: https://code.wireshark.org/review/5799
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit d2eddde5bd84ceb39bea77052848930c024d356b)
    Reviewed-on: https://code.wireshark.org/review/5801
    

Actions performed:

    from  5315b31   Use WTAP_ERR_UNSUPPORTED for input file stuff we can't handle.
    adds  982393b   Report WTAP_ERR_UNSUPPORTED correctly.


Summary of changes:
 capture_info.c |    2 +-
 tshark.c       |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)