1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-21 18:03:41 +03:00
Zbigniew Jędrzejewski-Szmek 3baed19327 Simplify the meaning of %s
The rules governing %s where just too complicated. First of
all, looking at $SHELL is dangerous. For systemd --system,
it usually wouldn't be set. But it could be set if the admin
first started a debug shell, let's say /sbin/sash, and then
launched systemd from it. This shouldn't influence how daemons
are started later on, so is better ignored. Similar reasoning
holds for session mode. Some shells set $SHELL, while other
set it only when it wasn't set previously (e.g. zsh). This
results in fragility that is better avoided by ignoring $SHELL
totally.

With $SHELL out of the way, simplify things by saying that
%s==/bin/sh for root, and the configured shell otherwise.
get_shell() is the only caller, so it can be inlined.

Fixes one issue seen with 'make check'.
2013-03-26 23:49:44 -04:00
..
2012-11-30 14:02:03 +01:00
2013-02-13 08:57:20 -05:00
2013-03-13 23:09:49 +01:00
2013-02-13 08:57:20 -05:00
2013-02-13 08:57:20 -05:00
2013-03-13 23:09:49 +01:00
2013-03-13 23:09:49 +01:00
2013-03-13 23:09:49 +01:00
2012-10-26 00:16:47 +02:00
2012-10-26 00:16:47 +02:00
2012-10-26 00:16:47 +02:00
2012-10-26 00:16:47 +02:00
2013-02-13 04:57:36 +01:00
2012-10-26 00:16:47 +02:00
2013-03-07 16:05:47 +01:00
2012-11-11 21:36:21 +01:00
2013-03-07 16:05:47 +01:00
2013-02-13 08:57:20 -05:00
2012-10-26 00:16:47 +02:00
2012-10-26 00:16:47 +02:00
2012-10-26 00:16:47 +02:00
2012-07-16 18:08:25 +02:00
2013-03-26 23:49:44 -04:00
2013-02-13 08:57:20 -05:00
2013-01-25 10:38:46 -05:00
2013-02-08 12:00:05 +01:00