summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-01-15 18:12:46 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-01-15 18:12:46 +0200
commit055fdc7f367600e2eeba8f5b77191cc45816e28d (patch)
tree109b5d7ebc1da4a4e03814816656350fb2d50d79
parentc39fcff9e98a62fd3d84e103a9fcc000415749ba (diff)
downloadmailutils-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.c2
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;

Return to:

Send suggestions and report system problems to the System administrator.