summaryrefslogtreecommitdiffstats
path: root/commands/exec.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-07-05 21:18:18 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-25 09:27:27 +0200
commitf8f570ea88904824459ba06aecf795ba0abdbc19 (patch)
treeeeba591755bb329a999cbd870df85a9b2f10f20c /commands/exec.c
parent6a6db83ab6a81272589d6c874d30a9a057d00767 (diff)
downloadbarebox-f8f570ea88904824459ba06aecf795ba0abdbc19.tar.gz
exec command: Fix compilation
read_file and run_command take an additional argument now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/exec.c')
-rw-r--r--commands/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/exec.c b/commands/exec.c
index a25e8cf..e2509ff 100644
--- a/commands/exec.c
+++ b/commands/exec.c
@@ -38,11 +38,11 @@ static int do_exec(int argc, char *argv[])
return COMMAND_ERROR_USAGE;
for (i=1; i<argc; ++i) {
- script = read_file(argv[i]);
+ script = read_file(argv[i], NULL);
if (!script)
return 1;
- if (run_command (script, flag) == -1)
+ if (run_command (script, 0) == -1)
goto out;
free(script);
}