diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:00:13 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:00:13 +0800 |
commit | eadc8ca4ec8a2211cdb07386bfb133ab972ed874 (patch) | |
tree | 5e4bce7a7c97d9ddfa60a2e04d991965dfe391d1 /mbbsd/register.c | |
parent | bac35869a07ddf3307643c0a60399e2bdb5b98ea (diff) | |
download | pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar.gz pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar.bz2 pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar.lz pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar.xz pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar.zst pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.zip |
less hard coded path/string.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2634 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r-- | mbbsd/register.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 246e1dad..0a2c9078 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -115,8 +115,7 @@ check_and_expire_account(int uid, const userec_t * urec) urec->numlogins, urec->numposts, val); if (val > -1 * 60 * 24 * 365) { log_usies("CLEAN", genbuf); - snprintf(genbuf, sizeof(genbuf), "home/%c/%s", urec->userid[0], - urec->userid); + sethomepath(genbuf, urec->userid); snprintf(genbuf2, sizeof(genbuf2), "tmp/%s", urec->userid); if (dashd(genbuf) && Rename(genbuf, genbuf2)) { snprintf(genbuf, sizeof(genbuf), |