summaryrefslogtreecommitdiff
path: root/src/import/export.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/export.c')
-rw-r--r--src/import/export.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/export.c b/src/import/export.c
index 83990df64c..b8507330ac 100644
--- a/src/import/export.c
+++ b/src/import/export.c
@@ -65,7 +65,7 @@ static int export_tar(int argc, char *argv[], void *userdata) {
_cleanup_close_ int open_fd = -1;
int r, fd;
- if (machine_name_is_valid(argv[1])) {
+ if (hostname_is_valid(argv[1], 0)) {
r = image_find(IMAGE_MACHINE, argv[1], &image);
if (r == -ENOENT)
return log_error_errno(r, "Machine image %s not found.", argv[1]);
@@ -141,7 +141,7 @@ static int export_raw(int argc, char *argv[], void *userdata) {
_cleanup_close_ int open_fd = -1;
int r, fd;
- if (machine_name_is_valid(argv[1])) {
+ if (hostname_is_valid(argv[1], 0)) {
r = image_find(IMAGE_MACHINE, argv[1], &image);
if (r == -ENOENT)
return log_error_errno(r, "Machine image %s not found.", argv[1]);