From 2ead8819603a21a03ee51440dc5617c5df1ed8da Mon Sep 17 00:00:00 2001 From: David Levine Date: Wed, 8 Dec 2010 14:36:36 -0600 Subject: [PATCH] * uip/whatnowsbr.c: enforce requirement of at least one file argument to attach command. --- ChangeLog | 5 +++++ uip/whatnowsbr.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1345dce..e7ee126 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2010-12-08 David Levine + * uip/whatnowsbr.c: enforce requirement of at least one file + argument to attach command. + +2010-12-08 David Levine + * man/send.man: added name= portion to Content-Type headers to reflect 2006-10-24 change to uip/sendsbr.c. That change allowed mhstore to use the (file)name when diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 723d408..6541b42 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -409,6 +409,11 @@ WhatNow (int argc, char **argv) break; } + if (*(argp+1) == (char *)0) { + advise((char *)0, "attach command requires file argument(s)."); + break; + } + /* * Build a command line that causes the user's shell to list the file name * arguments. This handles and wildcard expansion, tilde expansion, etc. -- 1.7.10.4