[CRIU] [PATCH] Fix CRTOOLS_SCRIPT_ACTION name

Kir Kolyshkin kir at openvz.org
Thu May 2 05:46:18 EDT 2013


... in quite a few places.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 Documentation/criu.txt | 2 +-
 crtools.c              | 2 +-
 util.c                 | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/criu.txt b/Documentation/criu.txt
index 301bb82..7d8ca2b 100644
--- a/Documentation/criu.txt
+++ b/Documentation/criu.txt
@@ -77,7 +77,7 @@ OPTIONS
 
 *--action-script* 'SCRIPT'::
     Add an external action script.
-    The environment variable *CRTOOL_SCRIPT_ACTION* contains one of the
+    The environment variable *CRTOOLS_SCRIPT_ACTION* contains one of the
     actions:
         * *network-lock*
                 lock network in a target network namespace
diff --git a/crtools.c b/crtools.c
index 03c65ef..18a9347 100644
--- a/crtools.c
+++ b/crtools.c
@@ -382,7 +382,7 @@ usage:
 	pr_msg("  --veth-pair [IN=OUT]	correspondence between outside and inside names of veth devices\n");
 	pr_msg("  --link-remap          allow to link unlinked files back when possible (modifies FS till restore)\n");
 	pr_msg("  --action-script [SCR]	add an external action script\n");
-	pr_msg("			The environment variable CRTOOL_SCRIPT_ACTION contains one of the actions:\n");
+	pr_msg("			The environment variable CRTOOLS_SCRIPT_ACTION contains one of the actions:\n");
 	pr_msg("			* network-lock - lock network in a target network namespace\n");
 	pr_msg("			* network-unlock - unlock network in a target network namespace\n");
 	pr_msg("  -j|--%s        allow to dump and restore shell jobs\n", OPT_SHELL_JOB);
diff --git a/util.c b/util.c
index b7d6918..1c6446a 100644
--- a/util.c
+++ b/util.c
@@ -495,7 +495,7 @@ int run_scripts(char *action)
 	int ret = 0;
 
 	if (setenv("CRTOOLS_SCRIPT_ACTION", action, 1)) {
-		pr_perror("Can't set CRTOOL_SCRIPT_ACTION=%s\n", action);
+		pr_perror("Can't set CRTOOLS_SCRIPT_ACTION=%s\n", action);
 		return -1;
 	}
 
-- 
1.8.1.4



More information about the CRIU mailing list