ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 2817] New: wireshark/tshark deletes files it can't open

Date: Tue, 19 Aug 2008 08:06:14 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2817

           Summary: wireshark/tshark deletes files it can't open
           Product: Wireshark
           Version: 1.0.2
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Low
         Component: TShark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: TenToThe9@xxxxxxxxxxx


Build Information:

--
Despite not being able to open a file requested with -w, tshark will delete the
file before exiting.  The GUI version, wireshark exhibits the same behavior.

Reproduce with:
1: tshark -w /tmp/a.dump (file created with -rw-------)
2: chown user /tmp/a.dump
3: tshark -w /tmp/a.dump (fails, says it can't open the file, permission
denied)
4: ls -l /tmp/a.dump (No such file...)

Expected behavior: leave the file there.


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.