pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/dspam Avoid calling mkdir() with a trailing slash...
details: https://anonhg.NetBSD.org/pkgsrc/rev/91d87b9d2a9b
branches: trunk
changeset: 479251:91d87b9d2a9b
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Aug 09 20:14:21 2004 +0000
description:
Avoid calling mkdir() with a trailing slash, as some systems don't
support it. DSPAM now correctly creates per-user statistics files on
NetBSD 1.6.2. Bump PKGREVISION.
diffstat:
mail/dspam/Makefile | 8 ++++----
mail/dspam/distinfo | 3 ++-
mail/dspam/patches/patch-aa | 28 ++++++++++++++++++++++++++++
3 files changed, 34 insertions(+), 5 deletions(-)
diffs (66 lines):
diff -r 8385d4c631f4 -r 91d87b9d2a9b mail/dspam/Makefile
--- a/mail/dspam/Makefile Mon Aug 09 19:03:03 2004 +0000
+++ b/mail/dspam/Makefile Mon Aug 09 20:14:21 2004 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2004/08/07 18:26:25 jlam Exp $
+# $NetBSD: Makefile,v 1.8 2004/08/09 20:14:21 jlam Exp $
DISTNAME= dspam-3.0.0
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= mail
MASTER_SITES= http://www.nuclearelephant.com/projects/dspam/sources/
@@ -48,8 +48,8 @@
CONFIGURE_ARGS+= --enable-chi-square
CONFIGURE_ARGS+= --enable-robinson-pvalues
CONFIGURE_ARGS+= --with-signature-life=${DSPAM_SIGNATURE_LIFE}
-CONFIGURE_ARGS+= --with-dspam-home=${DSPAM_HOME}
-CONFIGURE_ARGS+= --with-dspam-home-owner=${DSPAM_USER} \
+CONFIGURE_ARGS+= --with-dspam-home=${DSPAM_HOME} \
+ --with-dspam-home-owner=${DSPAM_USER} \
--with-dspam-home-group=${DSPAM_GROUP} \
--with-dspam-owner=${DSPAM_USER} \
--with-dspam-group=${DSPAM_GROUP} \
diff -r 8385d4c631f4 -r 91d87b9d2a9b mail/dspam/distinfo
--- a/mail/dspam/distinfo Mon Aug 09 19:03:03 2004 +0000
+++ b/mail/dspam/distinfo Mon Aug 09 20:14:21 2004 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/06/20 19:41:24 xtraeme Exp $
+$NetBSD: distinfo,v 1.2 2004/08/09 20:14:21 jlam Exp $
SHA1 (dspam-3.0.0.tar.gz) = d400a5ba9b5ad558917deba2eaf1ea2259068ac4
Size (dspam-3.0.0.tar.gz) = 575382 bytes
+SHA1 (patch-aa) = 1b74fa84b4e815be8e0fd59a7189fda2e4e64696
diff -r 8385d4c631f4 -r 91d87b9d2a9b mail/dspam/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/dspam/patches/patch-aa Mon Aug 09 20:14:21 2004 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1 2004/08/09 20:14:21 jlam Exp $
+
+--- util.c.orig Mon Jun 7 17:27:49 2004
++++ util.c
+@@ -331,11 +331,13 @@ _ds_prepare_path_for (const char *filena
+ file_buffer_start = file;
+ path[0] = 0;
+
++ if (file[0] == '/')
++ strlcat (path, "/", sizeof (path));
+ dir = strsep (&file, "/");
++
+ while (dir != NULL)
+ {
+ strlcat (path, dir, sizeof (path));
+- strlcat (path, "/", sizeof (path));
+ dir = strsep (&file, "/");
+
+ if (dir != NULL && stat (path, &s))
+@@ -350,6 +352,8 @@ _ds_prepare_path_for (const char *filena
+ return EFILE;
+ }
+ }
++ if (dir != NULL)
++ strlcat (path, "/", sizeof (path));
+ }
+ free (file_buffer_start);
+ return 0;
Home |
Main Index |
Thread Index |
Old Index