libnetpgp: added patch from http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=43245
This commit is contained in:
parent
80364190f9
commit
e883afa2fd
2 changed files with 14 additions and 0 deletions
|
@ -10,6 +10,8 @@ long_desc="
|
|||
identifier. netpgp can also encrypt files using the public or private
|
||||
keys of users and, in the same manner, decrypt files which were encrypted."
|
||||
|
||||
revision=1
|
||||
|
||||
Add_dependency run glibc
|
||||
Add_dependency run zlib
|
||||
Add_dependency run bzip2
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
--- src/lib/validate.c.orig 2010-05-04 02:07:27.512355384 +0200
|
||||
+++ src/lib/validate.c 2010-05-04 02:08:47.038371812 +0200
|
||||
@@ -814,7 +814,8 @@ __ops_validate_file(__ops_io_t *io,
|
||||
sigsize = st.st_size;
|
||||
detachname = NULL;
|
||||
cc = snprintf(origfile, sizeof(origfile), "%s", infile);
|
||||
- if (strcmp(&origfile[cc - 4], ".sig") == 0) {
|
||||
+ if ((strcmp(&origfile[cc - 4], ".sig") == 0) ||
|
||||
+ (strcmp(&origfile[cc - 4], ".asc") == 0)) {
|
||||
origfile[cc - 4] = 0x0;
|
||||
if (stat(origfile, &st) == 0 &&
|
||||
st.st_size > sigsize - SIG_OVERHEAD) {
|
Loading…
Reference in a new issue