mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
exec_builtin was not using the provided open flags
This commit is contained in:
parent
46f082a4dc
commit
c64e61df3e
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ int exec_builtin(FAR const char *appname, FAR char * const *argv,
|
|||
/* Set up to close open redirfile and set to stdout (1) */
|
||||
|
||||
ret = posix_spawn_file_actions_addopen(&file_actions, 1,
|
||||
redirfile, O_WRONLY, 0644);
|
||||
redirfile, oflags, 0644);
|
||||
if (ret != 0)
|
||||
{
|
||||
serr("ERROR: posix_spawn_file_actions_addopen failed: %d\n", ret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue