diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-01-15 18:12:46 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-01-15 18:12:46 +0200 |
commit | 055fdc7f367600e2eeba8f5b77191cc45816e28d (patch) | |
tree | 109b5d7ebc1da4a4e03814816656350fb2d50d79 | |
parent | c39fcff9e98a62fd3d84e103a9fcc000415749ba (diff) | |
download | mailutils-055fdc7f367600e2eeba8f5b77191cc45816e28d.tar.gz mailutils-055fdc7f367600e2eeba8f5b77191cc45816e28d.tar.bz2 |
Fix the pipe command (mail)
* mail/pipe.c: Always treat last argument as the name of the command
to use.
-rw-r--r-- | mail/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/pipe.c b/mail/pipe.c index ffa97f0a6..708a01ef2 100644 --- a/mail/pipe.c +++ b/mail/pipe.c @@ -29,7 +29,7 @@ mail_pipe (int argc, char **argv) char *cmd; msgset_t *list, *mp; - if (argc > 2) + if (argc > 1) cmd = argv[--argc]; else if (mailvar_get (&cmd, "cmd", mailvar_type_string, 1)) return 1; |