summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/backup.h
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2020-06-09 03:59:18 +0200
committerAllan McRae <allan@archlinux.org>2020-06-11 02:56:30 +0200
commit899d39b635d46f9e2daff1aada75ea07f08fef64 (patch)
tree746022d39a0f368f293f521b6758257314527d98 /lib/libalpm/backup.h
parentbf458cced7c0845f7b6fabb887d3878ae4cd51b2 (diff)
downloadpacman-899d39b635d46f9e2daff1aada75ea07f08fef64.tar.gz
pacman-899d39b635d46f9e2daff1aada75ea07f08fef64.tar.xz
makepkg/repo-add: handle GPGKEY with spaces
We pass this to gpg -u and this gpg option can accept a number of different formats, not just the historical hexadecimal fingerprint we assumed. We should not barf hard if a format is used which happens to contain spaces. This also fixes a validation bug. When we initially check if the desired key is available, we don't quote spaces, so gpg goes ahead and treats each space-separated string as a *different key* to search for, returning partial matches, and returning success if at least one key is found. But gpg --detach-sign -u will certainly not accept multiple keys! Fixes FS#66949 Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/backup.h')
0 files changed, 0 insertions, 0 deletions