From 5df891ff289172c21fe83cedfa7522b30570d1da Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 15 Jun 2014 13:22:44 -0600 Subject: [PATCH] Fix an error in exec(). argv[] has not being passed --- binfmt/binfmt_exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binfmt/binfmt_exec.c b/binfmt/binfmt_exec.c index c175de3b951..446df6373b0 100644 --- a/binfmt/binfmt_exec.c +++ b/binfmt/binfmt_exec.c @@ -80,7 +80,7 @@ * exits. * * Input Parameter: - * filename - Fulll path to the binary to be loaded + * filename - Full path to the binary to be loaded * argv - Argument list * exports - Table of exported symbols * nexports - The number of symbols in exports @@ -112,6 +112,7 @@ int exec(FAR const char *filename, FAR char * const *argv, /* Load the module into memory */ bin->filename = filename; + bin->argv = argv; bin->exports = exports; bin->nexports = nexports; @@ -189,4 +190,3 @@ int exec(FAR const char *filename, FAR char * const *argv, } #endif /* CONFIG_BINFMT_DISABLE */ -