diff options
author | agc <agc> | 2013-04-26 23:24:55 +0000 |
---|---|---|
committer | agc <agc> | 2013-04-26 23:24:55 +0000 |
commit | 24a9c3880f74c6f42d38f45e536298ff2bcb92da (patch) | |
tree | c31670d820ec86111ab9e75c801df4c4f2d3c681 /security/netpgpverify/files | |
parent | 8793fe673e385b0378981917d33b2db2febfd4f7 (diff) | |
download | pkgsrc-24a9c3880f74c6f42d38f45e536298ff2bcb92da.tar.gz |
Update security/netpgpverify to version 20130426
Change from previous version:
+ don't assume that output of a "cat" command (where output is sent to
stdout if the signature is verified) is able to be written with stdio.
Diffstat (limited to 'security/netpgpverify/files')
-rw-r--r-- | security/netpgpverify/files/main.c | 2 | ||||
-rw-r--r-- | security/netpgpverify/files/verify.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/security/netpgpverify/files/main.c b/security/netpgpverify/files/main.c index d48f5b2864f..793f5355cdb 100644 --- a/security/netpgpverify/files/main.c +++ b/security/netpgpverify/files/main.c @@ -99,7 +99,7 @@ verify_data(pgpv_t *pgp, const char *cmd, const char *inname, char *in, ssize_t if (strcasecmp(cmd, "cat") == 0) { if ((cookie = pgpv_verify(&cursor, pgp, in, cc)) != 0) { if ((size = pgpv_get_verified(&cursor, cookie, &data)) > 0) { - printf("%.*s", (int)size, data); + write(STDOUT_FILENO, data, size); } return 1; } diff --git a/security/netpgpverify/files/verify.h b/security/netpgpverify/files/verify.h index 7a6e8089843..fbeb48d1152 100644 --- a/security/netpgpverify/files/verify.h +++ b/security/netpgpverify/files/verify.h @@ -23,9 +23,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef NETPGP_VERIFY_H_ -#define NETPGP_VERIFY_H_ 20120928 +#define NETPGP_VERIFY_H_ 20130426 -#define NETPGPVERIFY_VERSION "netpgpverify portable 20130315" +#define NETPGPVERIFY_VERSION "netpgpverify portable 20130426" #include <sys/types.h> |