projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43331d4
)
Don't attempt to purge Citadel SYStem users.
author
Dave West
<davew@uncensored.citadel.org>
Sun, 7 Sep 2008 14:49:53 +0000
(14:49 +0000)
committer
Dave West
<davew@uncensored.citadel.org>
Sun, 7 Sep 2008 14:49:53 +0000
(14:49 +0000)
citadel/modules/expire/serv_expire.c
patch
|
blob
|
history
diff --git
a/citadel/modules/expire/serv_expire.c
b/citadel/modules/expire/serv_expire.c
index 4d384a56cefc2356b46b4adecafeb1d95d4851a9..eaffd921f5aa84f80b9c72d6293efb3c79165cf3 100644
(file)
--- a/
citadel/modules/expire/serv_expire.c
+++ b/
citadel/modules/expire/serv_expire.c
@@
-415,6
+415,10
@@
void do_user_purge(struct ctdluser *us, void *data) {
/* The default rule is to not purge. */
purge = 0;
+
+ /* don't attempt to purge system users. */
+ if (!strncmp(us->fullname, "SYS_", 4))
+ goto skip_all_this;
/* If the user hasn't called in two months and expiring of accounts is turned on, his/her account
* has expired, so purge the record.
@@
-494,7
+498,8
@@
void do_user_purge(struct ctdluser *us, void *data) {
}
}
-
+skip_all_this:
+
if (purge == 1) {
pptr = (struct PurgeList *) malloc(sizeof(struct PurgeList));
pptr->next = UserPurgeList;