gpg-zip fails with recipient names that have whitespace in them
Open, NormalPublic


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

gpg-zip --create -o -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.


dkg created this task.Feb 2 2018, 11:47 PM
werner triaged this task as Normal priority.Mar 13 2018, 11:00 AM
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

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)