Have init_progfile_dir() also check whether
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 21 May 2007 20:31:45 +0000 (20:31 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 21 May 2007 20:31:45 +0000 (20:31 +0000)
commit0f41677984f6a3a2c05c4e92da4bf7a3afde957b
treeca1efe51008ffcf0243cc83d30bca9d639a7084a
parent654d976d6cd4e811957dbb6a7e16559d3ac9e2fe
Have init_progfile_dir() also check whether
WIRESHARK_RUN_FROM_BUILD_DIRECTORY is set and, if so and we weren't run
with special privileges, set the running_in_build_directory_flag.  Have
it do the same if it finds ".libs" in the pathname of the program and we
weren't run with special privileges, as that means it was probably run
from the libtool wrapper script and presumably thus isn't an installed
binary.

This means that get_credential_info() has to be called before
init_progfile_dir().

Clean up some indentation.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21866 f5534014-38df-0310-8fa8-9805f1628bb7
dftest.c
epan/filesystem.c
gtk/main.c
tshark.c