diff --git a/lmtp2nntp/lmtp2nntp.patch b/lmtp2nntp/lmtp2nntp.patch new file mode 100644 index 0000000000..212de85961 --- /dev/null +++ b/lmtp2nntp/lmtp2nntp.patch @@ -0,0 +1,82 @@ +--- lib_l2/l2_channel.c.orig Mon Jan 27 17:01:35 2003 ++++ lib_l2/l2_channel.c Thu Jul 31 08:58:17 2003 +@@ -560,7 +560,7 @@ + l2_env_t *env; + + /* argument sanity check */ +- if (ch == NULL || level == 0 || fmt == NULL || ap == NULL) ++ if (ch == NULL || level == 0 || fmt == NULL) + return L2_ERR_ARG; + + /* make sure only a single level is specified */ +--- lib_l2/l2_ut_param.c.orig Mon Jan 6 12:41:52 2003 ++++ lib_l2/l2_ut_param.c Thu Jul 31 08:59:07 2003 +@@ -46,7 +46,7 @@ + int n; + + /* argument sanity check */ +- if (env == NULL || pa == NULL || fmt == NULL || ap == NULL) ++ if (env == NULL || pa == NULL || fmt == NULL) + return L2_ERR_ARG; + + /* on-the-fly create or just take over parameter specification string */ +--- lib_val/val.c.orig Thu Feb 6 17:58:40 2003 ++++ lib_val/val.c Thu Jul 31 09:00:43 2003 +@@ -824,7 +824,7 @@ + val_t *child; + + /* argument consistency check */ +- if (val == NULL || name == NULL || ap == NULL) ++ if (val == NULL || name == NULL) + return VAL_RC(VAL_ERR_ARG); + + /* recursive step-down on structured name */ +@@ -888,7 +888,7 @@ + val_t *child; + + /* argument consistency check */ +- if (val == NULL || name == NULL || ap == NULL) ++ if (val == NULL || name == NULL) + return VAL_RC(VAL_ERR_ARG); + + /* recursive step-down on structured name */ +--- lib_var/var.c.orig Mon Feb 10 22:15:41 2003 ++++ lib_var/var.c Thu Jul 31 09:01:11 2003 +@@ -126,7 +126,7 @@ + int n; + int bytes; + +- if (format == NULL || ap == NULL) ++ if (format == NULL) + return -1; + bytes = 0; + while (*format != '\0') { +@@ -214,7 +214,7 @@ + int n; + var_mvsnprintf_cb_t ctx; + +- if (format == NULL || ap == NULL) ++ if (format == NULL) + return -1; + if (buffer != NULL && bufsize == 0) + return -1; +--- lib_tai/ts.c.orig Thu Apr 18 11:10:47 2002 ++++ lib_tai/ts.c Thu Jul 31 09:05:09 2003 +@@ -126,7 +126,7 @@ + int n; + int bytes; + +- if (format == NULL || ap == NULL) ++ if (format == NULL) + return -1; + bytes = 0; + while (*format != '\0') { +@@ -200,7 +200,7 @@ + int n; + va_list ap2; + +- if (format == NULL || ap == NULL) ++ if (format == NULL) + return NULL; + ap2 = ap; + if ((n = ts_suite_mvxprintf(NULL, 0, format, ap)) == -1) diff --git a/lmtp2nntp/lmtp2nntp.spec b/lmtp2nntp/lmtp2nntp.spec index 58f3db25ac..f33b3d6d4c 100644 --- a/lmtp2nntp/lmtp2nntp.spec +++ b/lmtp2nntp/lmtp2nntp.spec @@ -33,12 +33,13 @@ Distribution: OpenPKG [BASE] Group: Mail License: GPL Version: 1.2.0 -Release: 20030723 +Release: 20030731 # list of sources Source0: ftp://ftp.ossp.org/pkg/tool/lmtp2nntp/lmtp2nntp-%{version}.tar.gz Source1: rc.lmtp2nntp Source2: lmtp2nntp.conf +Patch0: lmtp2nntp.patch # build information Prefix: %{l_prefix} @@ -62,6 +63,7 @@ AutoReqProv: no %prep %setup -q + %patch -p0 %build CC="%{l_cc}" \