1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00

import: three minor fixes

This commit is contained in:
Lennart Poettering 2014-12-24 16:43:46 +01:00
parent a36544cd45
commit 0c7bf33a98
2 changed files with 3 additions and 3 deletions

View File

@ -1131,7 +1131,7 @@ int dkr_import_pull(DkrImport *import, const char *name, const char *tag, const
n->force_local = force_local;
}
r = hashmap_put(import->names, name, n);
r = hashmap_put(import->names, n->name, n);
if (r < 0)
return r;

View File

@ -73,7 +73,7 @@ static int pull_dkr(int argc, char *argv[], void *userdata) {
local = name;
}
if (streq(local, "-") || isempty(local))
if (isempty(local) || streq(local, "-"))
local = NULL;
if (!dkr_name_is_valid(name)) {
@ -89,7 +89,7 @@ static int pull_dkr(int argc, char *argv[], void *userdata) {
if (local) {
const char *p;
if (!machine_name_is_valid(tag)) {
if (!machine_name_is_valid(local)) {
log_error("Local image name '%s' is not valid.", local);
return -EINVAL;
}