summaryrefslogtreecommitdiff
path: root/network/leafnode/patches/texpire_delete.diff
diff options
context:
space:
mode:
Diffstat (limited to 'network/leafnode/patches/texpire_delete.diff')
-rw-r--r--network/leafnode/patches/texpire_delete.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/network/leafnode/patches/texpire_delete.diff b/network/leafnode/patches/texpire_delete.diff
new file mode 100644
index 0000000000..9347a39e43
--- /dev/null
+++ b/network/leafnode/patches/texpire_delete.diff
@@ -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;