From 736a7052bea9fbbfcf4cb268d2c90a9229e4d214 Mon Sep 17 00:00:00 2001
From: k clair <kclair@riseup.net>
Date: Wed, 22 Aug 2012 07:18:41 -0700
Subject: [PATCH] patch file for the rename list fix

---
 .../09_fix_rename_lists_no_pending.patch      | 43 +++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 6.1.9/patches/09_fix_rename_lists_no_pending.patch

diff --git a/6.1.9/patches/09_fix_rename_lists_no_pending.patch b/6.1.9/patches/09_fix_rename_lists_no_pending.patch
new file mode 100644
index 0000000..46717b8
--- /dev/null
+++ b/6.1.9/patches/09_fix_rename_lists_no_pending.patch
@@ -0,0 +1,43 @@
+diff --git a/sympa-6.1.9-src/src/lib/admin.pm b/sympa-6.1.9-src/src/lib/admin.pm
+index 1397fa3..b9460f3 100644
+--- a/sympa-6.1.9-src/src/lib/admin.pm
++++ b/sympa-6.1.9-src/src/lib/admin.pm
+@@ -778,16 +778,16 @@ sub rename_list{
+      }
+ 
+     # set list status to pending if creation list is moderated
+-    if ($r_action =~ /listmaster/) {
+-      $list->{'admin'}{'status'} = 'pending' ;
+-      &List::send_notify_to_listmaster('request_list_renaming',$list->{'domain'}, 
+-				       {'list' => $list,
+-					'new_listname' => $param{'new_listname'},
+-					'old_listname' => $old_listname,
+-					'email' => $param{'user_email'},
+-					'mode' => $param{'mode'}});
+-      $param{'status'} = 'pending';
+-    }
++#    if ($r_action =~ /listmaster/) {
++#      $list->{'admin'}{'status'} = 'pending' ;
++#      &List::send_notify_to_listmaster('request_list_renaming',$list->{'domain'}, 
++#				       {'list' => $list,
++#					'new_listname' => $param{'new_listname'},
++#					'old_listname' => $old_listname,
++#					'email' => $param{'user_email'},
++#					'mode' => $param{'mode'}});
++#      $param{'status'} = 'pending';
++#    }
+      
+     ## Save config file for the new() later to reload it
+     $list->save_config($param{'user_email'});
+diff --git a/sympa-6.1.9-src/wwsympa/wwsympa.fcgi.in b/sympa-6.1.9-src/wwsympa/wwsympa.fcgi.in
+index b47a9e8..a8fb952 100644
+--- a/sympa-6.1.9-src/wwsympa/wwsympa.fcgi.in
++++ b/sympa-6.1.9-src/wwsympa/wwsympa.fcgi.in
+@@ -10259,6 +10259,7 @@ sub do_rename_list {
+ 				      remote_addr => $param->{'remote_addr'},
+ 				      aliases => $param->{'aliases'},
+ 				      status => $param->{'status'},
++                                      skip_authz => 1,
+ 				     );
+      
+      if ($result eq 'incorrect_listname') {       
-- 
GitLab