Wireshark-bugs: [Wireshark-bugs] [Bug 4735] New: tshark returns 0 on non-valid filter and interf
Date: Mon, 3 May 2010 04:35:48 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4735

           Summary: tshark returns 0 on non-valid filter and interface
           Product: Wireshark
           Version: 1.2.6
          Platform: All
        OS/Version: Fedora
            Status: NEW
          Severity: Major
          Priority: Low
         Component: TShark
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Build Information:
TShark 1.2.6

Copyright 1998-2010 Gerald Combs <[email protected]> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GLib 2.22.4, with libpcap 1.0.0, with libz 1.2.3, without POSIX
capabilities, with libpcre 7.8, with SMI 0.4.8, without c-ares, without ADNS,
with Lua 5.1, with GnuTLS 2.8.5, with Gcrypt 1.4.4, with MIT Kerberos, without
GeoIP.

Running on Linux 2.6.32.11-99.fc12.x86_64, with libpcap version 1.0.0, GnuTLS
2.8.5, Gcrypt 1.4.4.

Built using gcc 4.4.3 20100127 (Red Hat 4.4.3-4).

--
[[email protected] ~]# tshark -i eth10
Running as user "root" and group "root". This could be dangerous.
Capturing on eth10
tshark: The capture session could not be initiated (eth10: No such device
exists (SIOCGIFHWADDR: No such device)).
Please check to make sure you have sufficient permissions, and that you have
the proper interface or pipe specified.
0 packets captured
[[email protected] ~]# echo $?
0

Same happens with wrong filter. Apparently the error code doesn't get returned
correctly from dumpcap.

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