Page MenuHome GnuPG

--batch does not support special filenames
Closed, ResolvedPublic

Description

Release: 1.2.4

Description

For batch key generation, special filenames are not supported for the batch filename. The gnupg code is calling fopen on the batch filename argument directly, rather than passing it through the framework which handles special filenames.

How To Repeat

Here is trivial test which uses fd 0 (stdin):

$ gpg --enable-special-filenames --gen-key --batch -- -\&0
gpg: can't open `-&0': No such file or directory
 

Compare this to proper operation of another command, like :

$ gpg --enable-special-filenames --decrypt -- -\&0
[waiting for input]

Fix

I am not sure whether we are going to fix this in 1.2 anymore. However it will be fixed in 1.3.

Release Note

Just committed to CVS. Will go into 1.3.91