diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 17:12:47 +0000 |
commit | 08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch) | |
tree | 0cfc4f0736babb895eb97a65c6defe632a0249c7 /mail/qscan/files/patch-src__qscan.c | |
parent | editors/fte: update to 20110708 (diff) |
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Notes
Notes:
svn path=/head/; revision=363362
Diffstat (limited to 'mail/qscan/files/patch-src__qscan.c')
-rw-r--r-- | mail/qscan/files/patch-src__qscan.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mail/qscan/files/patch-src__qscan.c b/mail/qscan/files/patch-src__qscan.c new file mode 100644 index 000000000000..081a7bdff6eb --- /dev/null +++ b/mail/qscan/files/patch-src__qscan.c @@ -0,0 +1,34 @@ +--- src/qscan.c.orig Fri Oct 4 20:44:37 2002 ++++ src/qscan.c Thu Apr 8 16:47:28 2004 +@@ -326,8 +326,8 @@ + wait_everybody_and_die(99); + } + while (fgets(line, (int) sizeof line, avfp) != NULL) { +- if (strncmp(SWEEP_VIRUS_PREFIX, line, +- sizeof SWEEP_VIRUS_PREFIX - (size_t) 1U) == 0) { ++ register char *virus; ++ if ((virus = strstr(line, SWEEP_VIRUS_PREFIX)) != NULL) { + register char *crlf; + + if (ret < INT_MAX) { +@@ -340,8 +340,9 @@ + (crlf = strrchr(line, '\r')) != NULL) { + *crlf = 0; + } +- *foundvirus = strdup(line + +- sizeof SWEEP_VIRUS_PREFIX - (size_t) 1U); ++ *virus = 0; ++ virus = strrchr(line, ' '); ++ *foundvirus = strdup(++virus); + } + } + if (fclose(avfp) != 0) { +@@ -479,7 +480,7 @@ + perror_log("unable to create the destdir name"); + return -1; + } +- if (mkdir(ripmime_destdir, (mode_t) 0700) != 0) { ++ if (mkdir(ripmime_destdir, (mode_t) 0750) != 0) { + if (chdir(ripmime_destdir) != 0) { + perror_log("unable to create/access ripmime_destdir"); + return -1; |