summaryrefslogtreecommitdiffstats
path: root/mbbsd/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r--mbbsd/cache.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index ebbf164f..3860dd1f 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -6,9 +6,21 @@
#endif
/*
- * section - utmp cache
+ * section - user & utmp cache
*/
+int
+getuser(const char *userid, userec_t *xuser)
+{
+ int uid;
+
+ if ((uid = searchuser(userid, NULL))) {
+ passwd_sync_query(uid, xuser);
+ xuser->money = moneyof(uid);
+ }
+ return uid;
+}
+
void
getnewutmpent(const userinfo_t * up)
{