summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-06 14:00:41 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-02-06 14:00:41 +0800
commit87eeae487647486547e88133848143cf284d86bd (patch)
treedde2e3812a5e20b8ee264b8815f9dcfab909e0ba /mbbsd
parent8c48a348d91600a0640b05d08fe537f7780f7b98 (diff)
downloadpttbbs-87eeae487647486547e88133848143cf284d86bd.tar
pttbbs-87eeae487647486547e88133848143cf284d86bd.tar.gz
pttbbs-87eeae487647486547e88133848143cf284d86bd.tar.bz2
pttbbs-87eeae487647486547e88133848143cf284d86bd.tar.lz
pttbbs-87eeae487647486547e88133848143cf284d86bd.tar.xz
pttbbs-87eeae487647486547e88133848143cf284d86bd.tar.zst
pttbbs-87eeae487647486547e88133848143cf284d86bd.zip
remove unnessesary code
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1510 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/user.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index bd88b1f4..f7a623a4 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -600,13 +600,7 @@ uinfo_query(userec_t * u, int real, int unum)
snprintf(src, sizeof(src), "home/%c/%s", x.userid[0], x.userid);
snprintf(dst, sizeof(dst), "tmp/%s", x.userid);
- if (Rename(src, dst)) {
- snprintf(genbuf, sizeof(genbuf),
- "/bin/rm -fr %s >/dev/null 2>&1", src);
- /*
- * do not remove system(genbuf);
- */
- }
+ Rename(src, dst); /* do not remove user home */
log_usies("KILL", x.userid);
x.userid[0] = '\0';
setuserid(unum, x.userid);