diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-11-06 16:08:12 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-11-06 16:08:12 +0100 |
commit | 4a938cb273e164a475dc123cc80ea6354d7248d4 (patch) | |
tree | 607dad9fb23f1a248a8009758c03115528dde294 /sysdeps/unix/sysv/linux/spawni.c | |
parent | 7597b0c7f711a6918d5804e08508817c72916376 (diff) | |
download | glibc-4a938cb273e164a475dc123cc80ea6354d7248d4.tar.gz glibc-4a938cb273e164a475dc123cc80ea6354d7248d4.tar.xz glibc-4a938cb273e164a475dc123cc80ea6354d7248d4.zip |
posix: New function posix_spawn_file_actions_addchdir_np [BZ #17405]
Diffstat (limited to 'sysdeps/unix/sysv/linux/spawni.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/spawni.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/spawni.c b/sysdeps/unix/sysv/linux/spawni.c index 85239cedbf..9f3a137b5c 100644 --- a/sysdeps/unix/sysv/linux/spawni.c +++ b/sysdeps/unix/sysv/linux/spawni.c @@ -258,6 +258,11 @@ __spawni_child (void *arguments) != action->action.dup2_action.newfd) goto fail; break; + + case spawn_do_chdir: + if (__chdir (action->action.chdir_action.path) != 0) + goto fail; + break; } } } |