ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/src util.c,1.17,1.18


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/src util.c,1.17,1.18
Date: Mon, 20 Jan 2003 05:39:34 -0500

Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv4172

Modified Files:
        util.c 
Log Message:
just to be sure  it performs as wanted ;) 


Index: util.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/util.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- util.c      20 Jan 2003 10:02:16 -0000      1.17
+++ util.c      20 Jan 2003 10:39:32 -0000      1.18
@@ -1692,15 +1692,10 @@
                        ea = find_account_by_handle(handle, 
                                                    ela->service_id);
 
-                       if (!ea) {
-                               ea_recreated = FALSE;
-                               ea = dummy_account(handle, oldgroup, 
-                                                  ela->service_id);
-                       }
-                       if (action == MGMT_ADD && RUN_SERVICE(ea)->add_user) {
+                       if (ea && action == MGMT_ADD && 
RUN_SERVICE(ea)->add_user) {
                                RUN_SERVICE(ea)->add_user(ea);
                        }
-                       if (action == MGMT_MOV && 
RUN_SERVICE(ea)->change_group) {
+                       if (ea && action == MGMT_MOV && 
RUN_SERVICE(ea)->change_group) {
                                char realgrp[NAME_MAX];
                                /* this is "a bit" ugly :-( */
                                
strcpy(realgrp,ea->account_contact->group->name);
@@ -1708,6 +1703,13 @@
                                RUN_SERVICE(ea)->change_group(ea, newgroup);
                                strcpy(ea->account_contact->group->name, 
realgrp);
                        }
+                       
+                       if (!ea) {
+                               ea_recreated = FALSE;
+                               ea = dummy_account(handle, oldgroup, 
+                                                  ela->service_id);
+                       }
+
                        if (action == MGMT_DEL && RUN_SERVICE(ea)->del_user) {
                                /* some services syncing lists have
                                   automatically re-added our deleted 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]