[systemd-devel] [PATCH 2/3] core: Put transient user units in XDG_RUNTIME_DIR instead of XDG_CONFIG_HOME.
Kay Sievers
kay at vrfy.org
Fri Mar 28 11:02:26 PDT 2014
On Fri, Mar 28, 2014 at 6:38 PM, Hristo Venev <hristo at venev.name> wrote:
> They are temporary and should not clutter the configuration directory.
> ---
> src/core/unit.c | 32 +++++++++++++++-----------------
> 1 file changed, 15 insertions(+), 17 deletions(-)
>
> diff --git a/src/core/unit.c b/src/core/unit.c
> + c = strappend(getenv("XDG_RUNTIME_DIR"), "/systemd/user");
Nesting function calls without error checking should be avoided for
systemd code.
Kay
More information about the systemd-devel
mailing list