projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ede7416
)
CC -> CCC in do_login
author
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 8 Sep 2011 13:45:29 +0000
(13:45 +0000)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 8 Sep 2011 13:45:29 +0000
(13:45 +0000)
citadel/user_ops.c
patch
|
blob
|
history
diff --git
a/citadel/user_ops.c
b/citadel/user_ops.c
index 2b66fdbe24029a51e77fd6896008977b5ebc31c1..4ebc7bdc23ae07e45801c2555d29c82a2e07b08f 100644
(file)
--- a/
citadel/user_ops.c
+++ b/
citadel/user_ops.c
@@
-712,40
+712,42
@@
void cmd_user(char *cmdbuf)
*/
void do_login(void)
{
*/
void do_login(void)
{
- CC->logged_in = 1;
- syslog(LOG_NOTICE, "<%s> logged in\n", CC->curr_user);
+ struct CitContext *CCC = CC;
- CtdlGetUserLock(&CC->user, CC->curr_user);
- ++(CC->user.timescalled);
- CC->previous_login = CC->user.lastcall;
- time(&CC->user.lastcall);
+ CCC->logged_in = 1;
+ syslog(LOG_NOTICE, "<%s> logged in\n", CCC->curr_user);
+
+ CtdlGetUserLock(&CCC->user, CCC->curr_user);
+ ++(CCC->user.timescalled);
+ CCC->previous_login = CCC->user.lastcall;
+ time(&CCC->user.lastcall);
/* If this user's name is the name of the system administrator
* (as specified in setup), automatically assign access level 6.
*/
/* If this user's name is the name of the system administrator
* (as specified in setup), automatically assign access level 6.
*/
- if (!strcasecmp(CC->user.fullname, config.c_sysadm)) {
- CC->user.axlevel = AxAideU;
+ if (!strcasecmp(CC
C
->user.fullname, config.c_sysadm)) {
+ CC
C
->user.axlevel = AxAideU;
}
/* If we're authenticating off the host system, automatically give
* root the highest level of access.
*/
if (config.c_auth_mode == AUTHMODE_HOST) {
}
/* If we're authenticating off the host system, automatically give
* root the highest level of access.
*/
if (config.c_auth_mode == AUTHMODE_HOST) {
- if (CC->user.uid == 0) {
- CC->user.axlevel = AxAideU;
+ if (CC
C
->user.uid == 0) {
+ CC
C
->user.axlevel = AxAideU;
}
}
}
}
- CtdlPutUserLock(&CC->user);
+ CtdlPutUserLock(&CC
C
->user);
/*
/*
- * Populate CC->cs_inet_email with a default address. This will be
+ * Populate CC
C
->cs_inet_email with a default address. This will be
* overwritten with the user's directory address, if one exists, when
* the vCard module's login hook runs.
*/
* overwritten with the user's directory address, if one exists, when
* the vCard module's login hook runs.
*/
- snprintf(CC
->cs_inet_email, sizeof
CC->cs_inet_email, "%s@%s",
- CC->user.fullname, config.c_fqdn);
- convert_spaces_to_underscores(CC->cs_inet_email);
+ snprintf(CC
C->cs_inet_email, sizeof C
CC->cs_inet_email, "%s@%s",
+ CC
C
->user.fullname, config.c_fqdn);
+ convert_spaces_to_underscores(CC
C
->cs_inet_email);
/* Create any personal rooms required by the system.
* (Technically, MAILROOM should be there already, but just in case...)
/* Create any personal rooms required by the system.
* (Technically, MAILROOM should be there already, but just in case...)