Use $PATH when starting $SHELL
commit381d840a8245c06c88656edc26ed715ad3a53c50
authorUli Schlachter <psychon@znc.in>
Fri, 27 Sep 2013 14:22:55 +0000 (27 16:22 +0200)
committerUli Schlachter <psychon@znc.in>
Fri, 27 Sep 2013 14:22:55 +0000 (27 16:22 +0200)
tree893ab5a1508710ce639793b83119b6edc891409b
parentabd8246c1bb8827d33c13a21fb9550c1345b1697
Use $PATH when starting $SHELL

If $SHELL is set to "bash", previously awesome failed to restart itself, because
it could not find "bash". This commit makes awesome use execlp() instead of
execl() which means that $PATH is searched if the started command does not
contain a slash and this problem is fixed.

$SHELL is specified in POSIX and it doesn't seem to require an absolute path
name.

Signed-off-by: Uli Schlachter <psychon@znc.in>
common/util.c