summaryrefslogtreecommitdiff
path: root/src/machine/machine-dbus.c
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2020-12-15 18:26:34 +0000
committerLuca Boccassi <luca.boccassi@microsoft.com>2021-01-18 17:23:12 +0000
commit724e689715c8d9f23d035ab20d8c87b6b6c06e33 (patch)
tree0e0692ed6f2d3d5493dcb4090c82f7698cc776e0 /src/machine/machine-dbus.c
parent6af52c3a458691b016bedeba34c1e72294a67c81 (diff)
downloadsystemd-724e689715c8d9f23d035ab20d8c87b6b6c06e33.tar.gz
machine: adjust error message to use 'normalized' instead of ../
Diffstat (limited to 'src/machine/machine-dbus.c')
-rw-r--r--src/machine/machine-dbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c
index e5d8915be0..7d6e1c7163 100644
--- a/src/machine/machine-dbus.c
+++ b/src/machine/machine-dbus.c
@@ -827,12 +827,12 @@ int bus_machine_method_bind_mount(sd_bus_message *message, void *userdata, sd_bu
return r;
if (!path_is_absolute(src) || !path_is_normalized(src))
- return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Source path must be absolute and not contain ../.");
+ return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Source path must be absolute and normalized.");
if (isempty(dest))
dest = src;
else if (!path_is_absolute(dest) || !path_is_normalized(dest))
- return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Destination path must be absolute and not contain ../.");
+ return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Destination path must be absolute and normalized.");
r = bus_verify_polkit_async(
message,