summary refs log tree commit diff
path: root/sysdeps/posix/spawni.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/spawni.c')
-rw-r--r--sysdeps/posix/spawni.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/posix/spawni.c b/sysdeps/posix/spawni.c
index c02171cc61..73d51e6cbe 100644
--- a/sysdeps/posix/spawni.c
+++ b/sysdeps/posix/spawni.c
@@ -214,6 +214,11 @@ __spawni_child (void *arguments)
 	      if (__chdir (action->action.chdir_action.path) != 0)
 		goto fail;
 	      break;
+
+	    case spawn_do_fchdir:
+	      if (__fchdir (action->action.fchdir_action.fd) != 0)
+		goto fail;
+	      break;
 	    }
 	}
     }