mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-12 21:58:50 +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:
parent
54d55d4147
commit
0cf79eed68
@ -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>
|
||||
|
||||
* g10.c (main): Add --multifile as an alias to turn --encrypt into
|
||||
|
31
g10/g10.c
31
g10/g10.c
@ -1932,6 +1932,37 @@ main( int argc, char **argv )
|
||||
keygen_set_std_prefs(pers_compress_list,PREFTYPE_ZIP))
|
||||
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) )
|
||||
g10_exit(2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user