From 4a938cb273e164a475dc123cc80ea6354d7248d4 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 6 Nov 2018 16:08:12 +0100 Subject: posix: New function posix_spawn_file_actions_addchdir_np [BZ #17405] --- sysdeps/posix/spawni.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysdeps/posix/spawni.c') diff --git a/sysdeps/posix/spawni.c b/sysdeps/posix/spawni.c index b138ab4393..c42fbd590e 100644 --- a/sysdeps/posix/spawni.c +++ b/sysdeps/posix/spawni.c @@ -209,6 +209,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; } } } -- cgit v1.2.3