mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Fix using --decrypt along with --use-embedded-filename.
* g10/options.h (opt): Add flags.dummy_outfile. * g10/decrypt.c (decrypt_message): Set this global flag instead of the fucntion local flag. * g10/plaintext.c (get_output_file): Ignore opt.output if that was used as a dummy option aslong with --use-embedded-filename. -- The problem here was that an explicit specified --decrypt, as meanwhile suggested, did not work with that dangerous --use-embedded-filename. In contrast it worked when gpg decrypted as a side-effect of parsing the data. GnuPG-bug-id: 4500 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
7e5847da0f
commit
386bacd974
4 changed files with 10 additions and 5 deletions
|
@ -3023,7 +3023,8 @@ to display the message. This option overrides @option{--set-filename}.
|
|||
@itemx --no-use-embedded-filename
|
||||
@opindex use-embedded-filename
|
||||
Try to create a file with a name as embedded in the data. This can be
|
||||
a dangerous option as it enables overwriting files. Defaults to no.
|
||||
a dangerous option as it enables overwriting files. Defaults to no.
|
||||
Note that the option @option{--output} overrides this option.
|
||||
|
||||
@item --cipher-algo @var{name}
|
||||
@opindex cipher-algo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue