commit | bc4cb76df58c515c117fea23d04ed1de9a037d54 | [log] [tgz] |
---|---|---|
author | Flavio Ceolin <flavio.ceolin@intel.com> | Mon Nov 19 14:49:20 2018 -0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Dec 28 17:47:46 2018 -0500 |
tree | ea0853813357e5bbfc0eb097ee1592ed1332154f | |
parent | 74a74bb6b8dd439957a2d53a3d1747496e979d80 [diff] |
shell: Fix return error in shell_execute_cmd ENOEXEC should be used for executable file format error. While is undertandable return it when the command is wrong, this function is returning it two cases where other errors are more descriptive. When parameter is NULL, is better return EINVAL. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>