network/leafnode: Included upstream patch for texpire

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Andrew Strong 2011-06-19 23:13:42 -05:00 committed by Robby Workman
parent 0149d7cf14
commit f0fdcd72c1
4 changed files with 26 additions and 3 deletions

View File

@ -24,7 +24,7 @@
PRGNAM=leafnode
VERSION=2.0.0.alpha20081229a
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -70,9 +70,11 @@ find . \
-exec chmod 644 {} \;
# Fix compiler error with recent gcc:
patch -p1 < $CWD/sizeof_fix.diff
patch -p1 < $CWD/patches/sizeof_fix.diff
# Fix memory leak with applyfilter:
patch -p1 < $CWD/applyfilter_plugleak.diff
patch -p1 < $CWD/patches/applyfilter_plugleak.diff
# Don't delete articles when texpire -n -C MessID is run:
patch -p1 < $CWD/patches/texpire_delete.diff
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \

View File

@ -0,0 +1,21 @@
# commit f8c3b831ea2af3de9036c3dbebcff27fbfcfeec4
# Author: Matthias Andree <matthias.andree@gmx.de>
# Date: Fri May 27 01:22:44 2011 +0200
#
# Bugfix: don't delete articles when texpire -n -C MessID is run.
#
# Found by Paul Brooks.
--- a/texpire.c
+++ b/texpire.c
@@ -1123,7 +1123,9 @@ main(int argc, char **argv)
while(optind < argc) {
if (verbose)
printf("Trying to remove %s...\n", argv[optind]);
- delete_article(argv[optind], "Remove", "Removed", 1);
+ if (!dryrun) {
+ delete_article(argv[optind], "Remove", "Removed", 1);
+ }
optind++;
}
break;