summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-18 01:19:23 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-18 01:19:23 +0800
commitf738eb34b5f729f0e3fb4f9467446f7ddb22861b (patch)
tree88bfcf139a2e6fe6dd9bf2e8c2715880e96b9afc
parente644aec12e3798523c26b8ccc67ab5357af4bb1f (diff)
downloadpttbbs-f738eb34b5f729f0e3fb4f9467446f7ddb22861b.tar
pttbbs-f738eb34b5f729f0e3fb4f9467446f7ddb22861b.tar.gz
pttbbs-f738eb34b5f729f0e3fb4f9467446f7ddb22861b.tar.bz2
pttbbs-f738eb34b5f729f0e3fb4f9467446f7ddb22861b.tar.lz
pttbbs-f738eb34b5f729f0e3fb4f9467446f7ddb22861b.tar.xz
pttbbs-f738eb34b5f729f0e3fb4f9467446f7ddb22861b.tar.zst
pttbbs-f738eb34b5f729f0e3fb4f9467446f7ddb22861b.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@419 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/indexuser.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/util/indexuser.c b/util/indexuser.c
index bd761ccf..4991b919 100644
--- a/util/indexuser.c
+++ b/util/indexuser.c
@@ -24,9 +24,12 @@ int main()
printf("Sorry, the data is not ready.\n");
exit(0);
}
- system("rm -f "INDEXPATH"/realname/* ");
- system("rm -f "INDEXPATH"/email/* ");
- system("rm -f "INDEXPATH"/ident/* ");
+ system("rm -rf "INDEXPATH"/realname");
+ system("rm -rf "INDEXPATH"/email");
+ system("rm -rf "INDEXPATH"/ident");
+ mkdir(INDEXPATH"/realname",0600);
+ mkdir(INDEXPATH"/email",0600);
+ mkdir(INDEXPATH"/ident",0600);
for(j = 1; j <= MAX_USERS; j++) {
passwd_query(j, &u);
if(!u.userid[0]) continue;