mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 3bfd9319e9e7385f97d5a32e36bb53890731b110
parent 66d0eff12fdf31e520493e7c2accb95410dcaec2
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Fri,  1 Sep 2017 17:34:36 +0200

mflag: fix behavior with no arguments and reading from not a tty

Diffstat:
mflag.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/mflag.c b/mflag.c @@ -138,6 +138,11 @@ main(int argc, char *argv[]) curfile = blaze822_seq_cur(); if (vflag) { + if (argc == optind && !isatty(0)) { + blaze822_loop(0, 0, flag); // read from stdin + return 0; + } + args = calloc(sizeof (char *), argsalloc); if (!args) exit(-1);