]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/import/pull.c
importd: validate local image names with the right helper
[thirdparty/systemd.git] / src / import / pull.c
index f281ab04fddd0e9084e2b9dfdbb5de32025a75af..19cfbe0d8d2638f4a6b9f83b28c60ee768de7bbd 100644 (file)
@@ -59,7 +59,7 @@ static int normalize_local(const char *local, const char *url, char **ret) {
 
         } else if (local) {
 
-                if (!hostname_is_valid(local, 0))
+                if (!image_name_is_valid(local))
                         return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
                                                "Local image name '%s' is not valid.",
                                                local);