1 |
diff -Nur --no-dereference smeserver-mailman-1.5.0.old/root/usr/lib/mailman/bin/smelist smeserver-mailman-1.5.0/root/usr/lib/mailman/bin/smelist |
2 |
--- smeserver-mailman-1.5.0.old/root/usr/lib/mailman/bin/smelist 2014-06-19 19:38:55.000000000 -0400 |
3 |
+++ smeserver-mailman-1.5.0/root/usr/lib/mailman/bin/smelist 1969-12-31 19:00:00.000000000 -0500 |
4 |
@@ -1,31 +0,0 @@ |
5 |
-#!/usr/bin/perl -wT |
6 |
- |
7 |
-package esmith; |
8 |
-use strict; |
9 |
-use esmith::util; |
10 |
- |
11 |
-my $usage = "$0 is not meant to be called from the command line. |
12 |
-"; |
13 |
- |
14 |
-my ($event, $list) = @ARGV; |
15 |
-die $usage unless $event; |
16 |
-die $usage unless $list; |
17 |
- |
18 |
-BEGIN |
19 |
-{ |
20 |
- $ENV {'PATH'} = ''; |
21 |
- $ENV {'SHELL'} = '/bin/bash'; |
22 |
- delete $ENV {'ENV'}; |
23 |
-} |
24 |
- |
25 |
-die "Unknown event $event" |
26 |
- unless ($event =~ /^(addlist|rmlist|update)$/); |
27 |
-$event = $1; |
28 |
- |
29 |
-die "Invalid list name $list" |
30 |
- unless ($list =~ /^([\w\-\._]+)$/); |
31 |
-$list = $1; |
32 |
- |
33 |
-esmith::util::setRealToEffective (); |
34 |
-system ("/sbin/e-smith/signal-event", "mailman-$event", "$list") == 0 |
35 |
- or die ("Error occurred while modifying mailman list $list.\n"); |
36 |
diff -Nur --no-dereference smeserver-mailman-1.5.0.old/root/usr/lib/mailman/bin/smelist.pl smeserver-mailman-1.5.0/root/usr/lib/mailman/bin/smelist.pl |
37 |
--- smeserver-mailman-1.5.0.old/root/usr/lib/mailman/bin/smelist.pl 1969-12-31 19:00:00.000000000 -0500 |
38 |
+++ smeserver-mailman-1.5.0/root/usr/lib/mailman/bin/smelist.pl 2014-06-19 19:38:55.000000000 -0400 |
39 |
@@ -0,0 +1,31 @@ |
40 |
+#!/usr/bin/perl -wT |
41 |
+ |
42 |
+package esmith; |
43 |
+use strict; |
44 |
+use esmith::util; |
45 |
+ |
46 |
+my $usage = "$0 is not meant to be called from the command line. |
47 |
+"; |
48 |
+ |
49 |
+my ($event, $list) = @ARGV; |
50 |
+die $usage unless $event; |
51 |
+die $usage unless $list; |
52 |
+ |
53 |
+BEGIN |
54 |
+{ |
55 |
+ $ENV {'PATH'} = ''; |
56 |
+ $ENV {'SHELL'} = '/bin/bash'; |
57 |
+ delete $ENV {'ENV'}; |
58 |
+} |
59 |
+ |
60 |
+die "Unknown event $event" |
61 |
+ unless ($event =~ /^(addlist|rmlist|update)$/); |
62 |
+$event = $1; |
63 |
+ |
64 |
+die "Invalid list name $list" |
65 |
+ unless ($list =~ /^([\w\-\._]+)$/); |
66 |
+$list = $1; |
67 |
+ |
68 |
+esmith::util::setRealToEffective (); |
69 |
+system ("/sbin/e-smith/signal-event", "mailman-$event", "$list") == 0 |
70 |
+ or die ("Error occurred while modifying mailman list $list.\n"); |
71 |
diff -Nur --no-dereference smeserver-mailman-1.5.0.old/smelist.c smeserver-mailman-1.5.0/smelist.c |
72 |
--- smeserver-mailman-1.5.0.old/smelist.c 1969-12-31 19:00:00.000000000 -0500 |
73 |
+++ smeserver-mailman-1.5.0/smelist.c 2022-04-10 17:07:40.522000000 -0400 |
74 |
@@ -0,0 +1,11 @@ |
75 |
+#include <stdio.h> |
76 |
+#include <stdlib.h> |
77 |
+#include <memory.h> |
78 |
+#include <libgen.h> |
79 |
+#define REAL_PATH "/usr/lib/mailman/bin/smelist.pl" |
80 |
+ |
81 |
+main(int argc, char **argv) |
82 |
+{ |
83 |
+ execv( REAL_PATH, argv); |
84 |
+} |
85 |
+ |