diff options
author | midipix <writeonce@midipix.org> | 2018-08-12 18:02:38 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-08-13 19:23:28 -0400 |
commit | 0e8c10996c0fb91c8cf50364fa4690dced4ae831 (patch) | |
tree | 9fdc410e1073d2ecdb8a23a4d02572e2016d2769 /src | |
parent | 6bf630438a661c2ada87e4cf13b24ff1e9eef2dd (diff) | |
download | ptycon-0e8c10996c0fb91c8cf50364fa4690dced4ae831.tar.bz2 ptycon-0e8c10996c0fb91c8cf50364fa4690dced4ae831.tar.xz |
ptyc_spawn(): explicitly set sparams.hroot.
Diffstat (limited to 'src')
-rw-r--r-- | src/pty/ptyc_spawn.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pty/ptyc_spawn.c b/src/pty/ptyc_spawn.c index 732f7a1..5a7e7ab 100644 --- a/src/pty/ptyc_spawn.c +++ b/src/pty/ptyc_spawn.c @@ -44,6 +44,9 @@ int ptyc_spawn(struct ptyc_driver_ctx * dctx) sparams.argv = dctx->cctx->eargv; sparams.envp = self->envp; sparams.hsession = self->hsession; + sparams.hroot = dctx->cctx->hroot + ? dctx->cctx->hroot + : self->hroot; /* rtctx */ ntapi->tt_aligned_block_memset( @@ -55,9 +58,7 @@ int ptyc_spawn(struct ptyc_driver_ctx * dctx) sizeof(nt_cid)); rtctx.hcwd = self->hcwd; - rtctx.hroot = dctx->cctx->hroot - ? dctx->cctx->hroot - : self->hroot; + rtctx.hroot = sparams.hroot; rtctx.tty_type = self->tty_type; rtctx.tty_subtype = self->tty_subtype; |