Reduce usage of LP_CLONE_FDIO_CWD
To pass a CWD to a child through launchpad, simply set
the PWD environment variable, and the child will open
their CWD relative to their root when they initialize.
Change-Id: I3638aca635a09333807d536284adf008badcc073
diff --git a/fuchsia/fuchsia-compat.c b/fuchsia/fuchsia-compat.c
index 666c219..510ab9b 100644
--- a/fuchsia/fuchsia-compat.c
+++ b/fuchsia/fuchsia-compat.c
@@ -296,7 +296,7 @@
launchpad_create(0, command, &lp);
launchpad_load_from_file(lp, argv[0]);
launchpad_set_args(lp, argc, argv);
- launchpad_clone(lp, LP_CLONE_FDIO_NAMESPACE | LP_CLONE_FDIO_CWD);
+ launchpad_clone(lp, LP_CLONE_FDIO_NAMESPACE);
// TODO: set up environment
if (in == out) {
launchpad_clone_fd(lp, in, STDIN_FILENO);