1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

* g10.c (main): Error out if --multifile is used with the commands that

don't support it yet (--sign, --clearsign, --detach-sign, --symmetric, and
--store).
This commit is contained in:
David Shaw 2003-09-09 00:20:21 +00:00
parent 54d55d4147
commit 0cf79eed68
2 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-09-08 David Shaw <dshaw@jabberwocky.com>
* g10.c (main): Error out if --multifile is used with the commands
that don't support it yet (--sign, --clearsign, --detach-sign,
--symmetric, and --store).
2003-09-05 David Shaw <dshaw@jabberwocky.com> 2003-09-05 David Shaw <dshaw@jabberwocky.com>
* g10.c (main): Add --multifile as an alias to turn --encrypt into * g10.c (main): Add --multifile as an alias to turn --encrypt into

View File

@ -1932,6 +1932,37 @@ main( int argc, char **argv )
keygen_set_std_prefs(pers_compress_list,PREFTYPE_ZIP)) keygen_set_std_prefs(pers_compress_list,PREFTYPE_ZIP))
log_error(_("invalid personal compress preferences\n")); log_error(_("invalid personal compress preferences\n"));
/* We don't support all possible commands with multifile yet */
if(multifile)
{
char *cmdname;
switch(cmd)
{
case aSign:
cmdname="--sign";
break;
case aClearsign:
cmdname="--clearsign";
break;
case aDetachedSign:
cmdname="--detach-sign";
break;
case aSym:
cmdname="--symmetric";
break;
case aStore:
cmdname="--store";
break;
default:
cmdname=NULL;
break;
}
if(cmdname)
log_error(_("%s does not yet work with %s\n"),cmdname,"--multifile");
}
if( log_get_errorcount(0) ) if( log_get_errorcount(0) )
g10_exit(2); g10_exit(2);