[molecule.utils] eval_shell_argument: always provide a format string to printf

This commit is contained in:
Fabio Erculiani
2012-08-01 15:45:18 +02:00
parent 55d217c778
commit 8adce76d7d
+1 -1
View File
@@ -97,7 +97,7 @@ def eval_shell_argument(argument, env = None):
fcntl.fcntl(read, fcntl.F_SETFL, os.O_NONBLOCK)
exit_st = subprocess.call(
[shell_exec, "-c",
"printf \"" + argument + "\""],
"printf '%s' \"" + argument + "\""],
env = env, stdout = write)
if exit_st != 0:
raise AttributeError(