Don't put "get_home_dir()" inside #ifdef HAVE_LIBPCAP/#endif.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 29 Jan 2000 19:06:59 +0000 (19:06 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 29 Jan 2000 19:06:59 +0000 (19:06 +0000)
commitf8889feb7b875ea11d8103b3ad487186a26fb2de
treedb3a5389da8e7e28d1f0e76b7ab930dfa15d2400
parentc29d307005a8f9f7308974a063c1eabca6ab7afb
Don't put "get_home_dir()" inside #ifdef HAVE_LIBPCAP/#endif.

On UNIX, if "$HOME" isn't set, try getting the user ID and the password
entry for that user ID, and, if that succeeds, get the home directory
from the password entry, otherwise use "/tmp".  On NT, it may be
possible to do something similar (get the user name, and append that to
"C:\winnt\profiles\"); I'm not sure whether there's anything that can be
done on Windows 9x.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1580 f5534014-38df-0310-8fa8-9805f1628bb7
util.c