Hello,

I have a systematical crash at tcpdump startup, when I am using libpcap
(2007-01-30)
I just add a test to check if the USB bus directory is present in
pcap-usb-linux.c, and it
seems to solve the problem.

<<
 cat pcap-usb-linux.c.diff
--- pcap-usb-linux.c    2007-01-30 10:54:42.000000000 +0100
+++ pcap-usb-linux.c.ori        2007-01-30 10:45:52.000000000 +0100
@@ -149,7 +149,6 @@

        /* scan profs usb bus directorys */
        dir = opendir(USB_BUS_DIR);
-       if (!dir) return 0;
        while ((ret == 0) && ((data = readdir(dir)) != 0)) {
                int n;
                char* name = data->d_name;
>>

Best regards
Florent


-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Reply via email to