Wireshark

  • Riverbed Technology
  • WinPcap
SHARKFEST '12 - Wireshark Developer and User Conference - June 24-27, 2012 - UC Berkeley, Clark Kerr Campus
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] Interesting problem with tshark - understood and solved

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 30 Jun 2006 16:42:50 -0700


On Jun 30, 2006, at 12:27 PM, Bryant Eastham wrote:

I now understand the problem, and have found the problem in the code.
I should have mentioned that I am running tshark from a build, not
an installed, directory. It appears that tshark.c is missing the call
"init_progfile_dir(argv[0]);". Without this call, the data directory
is never initialized and defaults on Windows to the C:/Program Files/...
directory.

On UN*X, it works without the call; the program file directory is used only to run dumpcap, which tshark currently doesn't do.

On Windows, it doesn't work without the call; the program file directory is also the data directory.

I've checked in a fix to make the call (unconditionally, as, in the future, it might be useful to have an option on UN*X to use the directory in which the executable exists as the data file directory, to make it possible to run Wireshark/tshark from the build directory and have it pick up data files and plugins without having to install them).


  • References:
    • Re: [Wireshark-dev] Interesting problem with tshark - understood and solved
      • From: Bryant Eastham
  • Prev by Date: Re: [Wireshark-dev] Next release (plus SVN and roadmap changes)
  • Previous by thread: Re: [Wireshark-dev] Interesting problem with tshark - understood and solved
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation