From aba15a0391a04d5444319a609737c6b05f71e7c9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 18 Sep 2012 01:55:24 +0200 Subject: selinux: prefer source path over fragment path --- src/core/dbus-unit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/dbus-unit.c') diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index d86f60e498..3d3458bed7 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -420,9 +420,9 @@ static DBusHandlerResult bus_unit_message_dispatch(Unit *u, DBusConnection *conn connection, message, m, - (u->fragment_path ? u->fragment_path: u->source_path), + u->source_path ? u->source_path : u->fragment_path, &error); - if (r) + if (r < 0) return bus_send_error_reply(connection, message, &error, r); if (dbus_message_is_method_call(message, "org.freedesktop.systemd1.Unit", "Start")) -- cgit v1.2.3-54-g00ecf