Page MenuHome GnuPG

gpg-zip fails with recipient names that have whitespace in them
Closed, WontfixPublic

Description

consider zipping a file to a user identified by their name, which has more than one part, separated by whitespace:

gpg-zip --create -o for-maria.zip.pgp -r 'Maria Cordozo' secrets/

This will fail with a cryptic error because of the way that gpg-zip collects $gpg_args into a single variable that then gets split back out again by the shell.

Details

Version
2.2.4

Revisions and Commits

Event Timeline

werner added a project: gpgtar.
werner added a subscriber: werner.

That is not easy to fix in a shell script. I would prefer to get rid of gpg-zip or make it a simple wrapper around gpgtar like

#!/bin/sh
exec gpgtar "$@"

The only problem I can see is that gpgtar does not support the option --tar. That can be easily solved by adding a dummy option --tar to gpgtar.

(BTW, --create is not an option - you meant --encrypt)

werner claimed this task.