From f738eb34b5f729f0e3fb4f9467446f7ddb22861b Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 17 Jul 2002 17:19:23 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@419 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/indexuser.c | 9 ++++++--- 1 file 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; -- cgit v1.2.3