importd: try to minimize confusion by renaming "systemd-import" binary to "systemd-pull"

This way "systemd-importd" is the daemon that uses "systemd-pull" as
backend worker.
This commit is contained in:
Lennart Poettering
2015-01-22 17:50:50 +01:00
parent 6adf7b5e46
commit ff828763c4
3 changed files with 9 additions and 12 deletions
+2 -2
View File
@@ -342,7 +342,7 @@ static int transfer_start(Transfer *t) {
return -errno;
if (t->pid == 0) {
const char *cmd[] = {
"systemd-import",
"systemd-pull",
t->type == TRANSFER_TAR ? "pull-tar" :
t->type == TRANSFER_RAW ? "pull-raw" :
"pull-dkr",
@@ -413,7 +413,7 @@ static int transfer_start(Transfer *t) {
cmd[k++] = t->local;
cmd[k] = NULL;
execv(SYSTEMD_IMPORT_PATH, (char * const *) cmd);
execv(SYSTEMD_PULL_PATH, (char * const *) cmd);
log_error_errno(errno, "Failed to execute import tool: %m");
_exit(EXIT_FAILURE);
}