From 3995d65255b673ad4575657782075652532f9dd7 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 22 Jul 2016 04:04:32 -0400 Subject: ptyc_spawn(): support '/??/...' executable path arguments. --- src/internal/ptycon_open_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/internal') diff --git a/src/internal/ptycon_open_impl.c b/src/internal/ptycon_open_impl.c index efda8bc..8ab9d61 100644 --- a/src/internal/ptycon_open_impl.c +++ b/src/internal/ptycon_open_impl.c @@ -52,7 +52,7 @@ static int32_t ptyc_open( /* oa */ oa.len = sizeof(nt_oa); - oa.root_dir = hat; + oa.root_dir = (buffer[0]=='\\') ? 0 : hat; oa.obj_name = &path; oa.obj_attr = fprivate ? 0 : NT_OBJ_INHERIT; oa.sec_desc = 0; -- cgit v1.2.3