return NULL;
}
memset(me, 0, sizeof(CitContext));
-
/* Give the contaxt a name. Hopefully makes it easier to track */
strcpy (me->user.fullname, "SYS_notauth");
strcpy (sysname, "SYS_");
strcat (sysname, name);
len = cutuserkey(sysname);
+ memcpy(context->curr_user, sysname, len + 1);
+
/* internal_create_user has the side effect of loading the user regardless of wether they
* already existed or needed to be created
*/
}
}
+/*
+ * flush it again...
+ */
+void CtdlClearSystemContext(void)
+{
+ CitContext *CCC = CC;
+
+ memset(CCC, 0, sizeof(CitContext));
+ citthread_setspecific(MyConKey, NULL);
+}
+
/*
* Cleanup any contexts that are left lying around
*/