From: David Levine Date: Wed, 8 Dec 2010 20:36:36 +0000 (-0600) Subject: * uip/whatnowsbr.c: enforce requirement of at least one file X-Git-Tag: mmh-start~20 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=2ead8819603a21a03ee51440dc5617c5df1ed8da * uip/whatnowsbr.c: enforce requirement of at least one file argument to attach command. --- 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.