projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add RTLD_DEFAULT support
[musl]
/
src
/
process
/
posix_spawn_file_actions_addopen.c
diff --git
a/src/process/posix_spawn_file_actions_addopen.c
b/src/process/posix_spawn_file_actions_addopen.c
index
5e2c86d
..
af3ca60
100644
(file)
--- a/
src/process/posix_spawn_file_actions_addopen.c
+++ b/
src/process/posix_spawn_file_actions_addopen.c
@@
-13,7
+13,8
@@
int posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *fa, int fd, con
op->oflag = flags;
op->mode = mode;
strcpy(op->path, path);
- op->next = fa->__actions;
+ if ((op->next = fa->__actions)) op->next->prev = op;
+ op->prev = 0;
fa->__actions = op;
return 0;
}