From 2de078329160a245dc95ab1cec99653e297e257b Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 8 Jul 2016 16:57:11 -0400 Subject: driver: added --cat support. --- src/pty/ptyc_pty_ctx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pty/ptyc_pty_ctx.c') diff --git a/src/pty/ptyc_pty_ctx.c b/src/pty/ptyc_pty_ctx.c index d796138..0338574 100644 --- a/src/pty/ptyc_pty_ctx.c +++ b/src/pty/ptyc_pty_ctx.c @@ -69,7 +69,8 @@ int ptyc_alloc_pty(struct ptyc_driver_ctx * dctx) return ptyc_set_status( dctx,status); - if (!(cctx->drvflags & PTYC_DRIVER_DBG_OVEN) + if (!dctx->units[0] + && !(cctx->drvflags & PTYC_DRIVER_DBG_OVEN) && !(cctx->drvflags & PTYC_DRIVER_DBG_RAW)) return ptyc_set_status( dctx,NT_STATUS_SUCCESS); -- cgit v1.2.3