diff options
author | Michael Schroeder <mls@suse.de> | 2013-08-28 17:24:47 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-08-28 17:24:47 +0200 |
commit | 2007c85d43a99ff371d46da38fe60e6143f5ee7b (patch) | |
tree | c43e91529c0b67dd5fac4cebc95cdb1261a200c6 | |
parent | f3105398afc0137a40dae05d2992caf3b7fe1349 (diff) | |
download | libsolv-2007c85d43a99ff371d46da38fe60e6143f5ee7b.tar.gz libsolv-2007c85d43a99ff371d46da38fe60e6143f5ee7b.tar.bz2 libsolv-2007c85d43a99ff371d46da38fe60e6143f5ee7b.zip |
solv example: use gpgv instead of gpg to verify sigs
-rw-r--r-- | examples/solv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/solv.c b/examples/solv.c index 9b6bd48..7d6de97 100644 --- a/examples/solv.c +++ b/examples/solv.c @@ -973,7 +973,7 @@ checksig(Pool *sigpool, FILE *fp, FILE *sigfp) lseek(fileno(fp), 0, SEEK_SET); possigfp = lseek(fileno(sigfp), 0, SEEK_CUR); lseek(fileno(sigfp), 0, SEEK_SET); - snprintf(cmd, sizeof(cmd), "gpg -q --homedir %s --verify /dev/fd/%d /dev/fd/%d >/dev/null 2>&1", gpgdir, fileno(sigfp), fileno(fp)); + snprintf(cmd, sizeof(cmd), "gpgv -q --homedir %s --keyring %s/pubring.gpg /dev/fd/%d /dev/fd/%d >/dev/null 2>&1", gpgdir, gpgdir, fileno(sigfp), fileno(fp)); fcntl(fileno(fp), F_SETFD, 0); /* clear CLOEXEC */ fcntl(fileno(sigfp), F_SETFD, 0); /* clear CLOEXEC */ r = system(cmd); |