Page MenuHome GnuPG

Windows command line prepends homedir to --keyring= path specification
Closed, ResolvedPublic

Description

This works fine on Ubuntu (with a different keyring path). Here's the command
line and output (using Gpg4win 2.2.0):

PS C:\Users\Bruce\Downloads> gpg --keyring=./debian-keyring.gpg --list-key
BACE15D2A57498FF
gpg: keyblock resource `C:/Users/Bruce/AppData/Roaming/gnupg/./debian-
keyring.gpg': No such file or directory
gpg: error reading key: No public key

Details

Version
2.0.21

Event Timeline

Use a backslash and it should work.

Agreed, at most places gpg takes a normal slash just fine and the Windows API is
also specified to work with it. I will consider to also test for a forward slash.

werner renamed this task from Winodws command line prepends APPDATA to --keyring= path specification to Winodws command line prepends homedir to --keyring= path specification.Mar 19 2015, 12:30 PM

Fixed for master (2.1).
Will not be backported to 2.0.

werner renamed this task from Winodws command line prepends homedir to --keyring= path specification to Windows command line prepends homedir to --keyring= path specification.Mar 24 2015, 1:34 PM
werner added a project: Restricted Project.
werner claimed this task.
werner removed a project: Restricted Project.