X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fexpire%2Fserv_expire.c;h=ac5debf2ce388456e7ade160810d915834681ce5;hb=4784ca02b8038d20477d02e059e753588b3d28a7;hp=33d9508e43d009f2b933610746d2444cf71c8ea5;hpb=0c8789fa5ddd0c5ed59468db47a681ae15440b68;p=citadel.git diff --git a/citadel/modules/expire/serv_expire.c b/citadel/modules/expire/serv_expire.c index 33d9508e4..ac5debf2c 100644 --- a/citadel/modules/expire/serv_expire.c +++ b/citadel/modules/expire/serv_expire.c @@ -445,6 +445,9 @@ void do_user_purge(struct ctdluser *us, void *data) { */ if (us->usernum < 0L) purge = 1; + /** Don't purge user 0. That user is there for the system */ + if (us->usernum == 0) purge = 0; + /* If the user has no full name entry then we can't purge them * since the actual purge can't find them. * This shouldn't happen but does somehow.