diff options
author | midipix <writeonce@midipix.org> | 2016-07-08 16:57:11 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-21 03:47:26 -0400 |
commit | 2de078329160a245dc95ab1cec99653e297e257b (patch) | |
tree | 21f277af3e6237650a965fa5698b41098295b56c /src/pty | |
parent | 0e0975a453a7cacee3e1baf95042ef151fc94720 (diff) | |
download | ptycon-2de078329160a245dc95ab1cec99653e297e257b.tar.bz2 ptycon-2de078329160a245dc95ab1cec99653e297e257b.tar.xz |
driver: added --cat support.
Diffstat (limited to 'src/pty')
-rw-r--r-- | src/pty/ptyc_pty_ctx.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |