Wireshark-commits: [Wireshark-commits] master 74bd75b: wiretap: use appropriate extension for tempo
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Mon, 17 Dec 2018 05:19:15 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=74bd75baa58f9d569c856493df396e9f813539f5
Submitter: "Anders Broman <a.broman58@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

74bd75b by Jaap Keuter (jaap.keuter@xxxxxxxxx):

    wiretap: use appropriate extension for temporary files
    
    With the change from Wireshark's default capture file format from
    pcap to pcapng the suffix of the temporary file created in wiretap
    was also changed from .pcap to .pcapng. This irrespective of the
    actual file type requested. This change retrieves the registered
    extension for the requested file type (in its uncompressed form)
    and used that for the suffix. File types without a defined default
    extension will get .tmp as suffix.
    
    Change-Id: If809fef4325e483072c1fa4ee962125d991a197e
    Signed-off-by: Jaap Keuter <jaap.keuter@xxxxxxxxx>
    Reviewed-on: https://code.wireshark.org/review/31065
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
    

Actions performed:

    from  5009f98   macOS: Fix a .dmg build path.
     add  74bd75b   wiretap: use appropriate extension for temporary files


Summary of changes:
 wiretap/file_access.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)