bti: Handle NULL HOME environment variables
authorGreg Kroah-Hartman <gregkh@suse.de>
Sun, 8 May 2011 19:19:13 +0000 (12:19 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 8 May 2011 19:19:13 +0000 (12:19 -0700)
commit081129fe97e87549df39e0ef9e1d924035138ed5
treee7f241fb18e204668358942d8acaa0ee4a365a1a
parentf4584ef10960213549bd55790efb9a73eef37c7d
bti: Handle NULL HOME environment variables

If HOME is NULL, we die, which is not nice.  Some servers don't
set HOME up (like Apache), so default to /etc/bti for a config file if
that happens.

Reported-by: Paul Salanitri <paul.salanitri@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
bti.c