This commit is contained in:
Juan RP 2010-05-04 03:07:53 +02:00
parent 80364190f9
commit e883afa2fd
2 changed files with 14 additions and 0 deletions

View file

@ -10,6 +10,8 @@ long_desc="
identifier. netpgp can also encrypt files using the public or private identifier. netpgp can also encrypt files using the public or private
keys of users and, in the same manner, decrypt files which were encrypted." keys of users and, in the same manner, decrypt files which were encrypted."
revision=1
Add_dependency run glibc Add_dependency run glibc
Add_dependency run zlib Add_dependency run zlib
Add_dependency run bzip2 Add_dependency run bzip2

View file

@ -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) {