summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-16 03:23:54 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-16 03:24:50 +0200
commitee83acc49b7231b493fd08ac619d09e4a5461f83 (patch)
treeafcf5da43df045bd82ef64932bff6c47b2ae1ea7 /src
parent27b5482cc08b7fac1b6b15d980d42ae04f3ae1ca (diff)
switch-root: check for absolute paths
Diffstat (limited to 'src')
-rw-r--r--src/core/dbus-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
index 33dcb56c09..7a06ca6492 100644
--- a/src/core/dbus-manager.c
+++ b/src/core/dbus-manager.c
@@ -1196,10 +1196,10 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection,
DBUS_TYPE_INVALID))
return bus_send_error_reply(connection, message, &error, -EINVAL);
- if (path_equal(switch_root, "/") || !is_path(switch_root))
+ if (path_equal(switch_root, "/") || !path_is_absolute(switch_root))
return bus_send_error_reply(connection, message, NULL, -EINVAL);
- if (!isempty(switch_root_init) && !is_path(switch_root_init))
+ if (!isempty(switch_root_init) && !path_is_absolute(switch_root_init))
return bus_send_error_reply(connection, message, NULL, -EINVAL);
if (m->running_as != MANAGER_SYSTEM) {