summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-12 15:52:01 +0000
committermidipix <writeonce@midipix.org>2018-08-13 19:23:27 -0400
commit6bf630438a661c2ada87e4cf13b24ff1e9eef2dd (patch)
tree4c3a68e53daaf04dfb986c5d7046e23074900cf2
parent5822915ed1835a618fdf1b37aa073b99748159fa (diff)
downloadptycon-6bf630438a661c2ada87e4cf13b24ff1e9eef2dd.tar.bz2
ptycon-6bf630438a661c2ada87e4cf13b24ff1e9eef2dd.tar.xz
ptyc_main(): restore support of --cat with no --exec.
-rw-r--r--src/driver/ptyc_amain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/driver/ptyc_amain.c b/src/driver/ptyc_amain.c
index 37c2657..37163c3 100644
--- a/src/driver/ptyc_amain.c
+++ b/src/driver/ptyc_amain.c
@@ -73,7 +73,7 @@ int ptyc_main(char ** argv, char ** envp)
if ((ptyc_version(dctx)) < 0)
return ptyc_exit(dctx,2);
- if (!dctx->cctx->eargv)
+ if (!dctx->cctx->eargv && !dctx->units[0])
if (!(dctx->cctx->drvflags & PTYC_DRIVER_DBG_MODE))
return ptyc_exit(dctx,0);