diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-04-05 18:01:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-05-24 17:01:57 +0200 |
commit | 225219e5040a43291d07b30f501c11f85a19695b (patch) | |
tree | 73628338d32920d7f6a7f73df7dff950bd74479a /src/shared/machine-image.c | |
parent | 4756c94e5ee4d5bb868ded9a9666e5ea0c4ba7f8 (diff) | |
download | systemd-225219e5040a43291d07b30f501c11f85a19695b.tar.gz |
machine-image: use pretty names if we already have them and validated them
Diffstat (limited to 'src/shared/machine-image.c')
-rw-r--r-- | src/shared/machine-image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/machine-image.c b/src/shared/machine-image.c index 853521e6d6..6fabe4cf7e 100644 --- a/src/shared/machine-image.c +++ b/src/shared/machine-image.c @@ -412,7 +412,7 @@ int image_find(ImageClass class, const char *name, Image **ret) { return -errno; } - r = image_make(NULL, dirfd(d), path, name, ret); + r = image_make(name, dirfd(d), path, name, ret); if (IN_SET(r, 0, -ENOENT)) { _cleanup_free_ char *raw = NULL; @@ -420,7 +420,7 @@ int image_find(ImageClass class, const char *name, Image **ret) { if (!raw) return -ENOMEM; - r = image_make(NULL, dirfd(d), path, raw, ret); + r = image_make(name, dirfd(d), path, raw, ret); if (IN_SET(r, 0, -ENOENT)) continue; } |