Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit c64e61d

Browse files
committed
exec_builtin was not using the provided open flags
1 parent 46f082a commit c64e61d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builtin/exec_builtin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ int exec_builtin(FAR const char *appname, FAR char * const *argv,
173173
/* Set up to close open redirfile and set to stdout (1) */
174174

175175
ret = posix_spawn_file_actions_addopen(&file_actions, 1,
176-
redirfile, O_WRONLY, 0644);
176+
redirfile, oflags, 0644);
177177
if (ret != 0)
178178
{
179179
serr("ERROR: posix_spawn_file_actions_addopen failed: %d\n", ret);

0 commit comments

Comments
 (0)