Wireshark-bugs: [Wireshark-bugs] [Bug 5291] New: improve command-line tshark to follow symlink
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5291
Summary: improve command-line tshark to follow symlink
Product: Wireshark
Version: 1.4.1
Platform: All
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Enhancement
Priority: Low
Component: Extras
AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
ReportedBy: denis.laplante@xxxxxx
Created an attachment (id=5288)
--> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=5288)
patch for command-line tshark to follow symlink
Build Information:
$ tshark -v
TShark 1.4.1 (SVN Rev 34476 from /trunk-1.4)
Copyright 1998-2010 Gerald Combs <gerald@xxxxxxxxxxxxx> 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 (32-bit) with GLib 2.16.3, with libpcap 0.9.5, with libz 1.2.3,
without
POSIX capabilities, without libpcre, with SMI 0.4.8, with c-ares 1.5.3, with
Lua
5.1, without Python, with GnuTLS 2.6.2, with Gcrypt 1.4.3, with MIT Kerberos,
without GeoIP.
Running on Darwin 9.8.0 (Mac OS 10.5.8), with libpcap version 0.9.5, with libz
1.2.3.
Built using gcc 4.0.1 (Apple Inc. build 5488).
--
"read me first.rtf" requires "Drag the contents of the Command Line folder to
$HOME/bin [...]".
The attached change, using "readlink" to follow destination of symbolic link,
allows doing for example:
ln -s /Applications/Wireshark.app/Contents/Resources/bin/tshark ~/bin/tshark
This symlink (with modifications to script bin/tshark) worked with version
1.2.7 and 1.4.1 , and would not need to be changed when upgrading wireshark.
I prefer a symlink, which makes obvious the relationship between the entry in
~/bin and the Application, and there are fewer little scripts or environment
variables to maintain.
I realize that unlike the current drag instructions, it's harder to provide a
GUI process for the creation of such symlinks.
This change allows another way to manage command line paths, without
interfering with the good existing scheme.
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.