]> git.tuebingen.mpg.de Git - gsu.git/commitdiff
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)
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.


No differences found