gsu: Don't fail if HOME is unset.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 26 Aug 2014 19:52:07 +0000 (21:52 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:39:59 +0000 (21:39 +0200)
commit64ebbbd2e3f5787ca4245f165507a882872b97c3
tree46e8282be0bec2cceae593fd5b8683940b0d8f04
parentd7c3e4925d48003b996017e9a1c9d1e103272266
gsu: Don't fail if HOME is unset.

As pointed out by Joffrey Fitz, gsu-based scripts do not work when
run as a user without home directory. This happens for example if
the script is executed through a web application as the www-data user.

This patch replaces all references to HOME by ${HOME:-}, i.e. we just
default to the empty string but don't fail immediately.
misc/gsu/config
misc/gsu/gui
misc/gsu/subcommand