]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machine: adjust error message to use 'normalized' instead of ../
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 15 Dec 2020 18:26:34 +0000 (18:26 +0000)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Mon, 18 Jan 2021 17:23:12 +0000 (17:23 +0000)
src/machine/machine-dbus.c

index e5d8915be0bb1e91aa68e6b69b3450d5bc1455e3..7d6e1c716341fedde629cf25b9d639795b4a2f9a 100644 (file)
@@ -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,