From 4960c6f354132ea0fa0b19382fd8a80fab2b80da Mon Sep 17 00:00:00 2001 From: ptt Date: Tue, 29 Jun 2004 17:55:49 +0000 Subject: debug of losting the last post git-svn-id: http://opensvn.csie.org/pttbbs/branches/ptt.fpg@2104 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/admin.c | 18 +++++++++++++----- mbbsd/merge.c | 5 +++-- 2 files changed, 16 insertions(+), 7 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/admin.c b/mbbsd/admin.c index d9211c74..09c608cd 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -271,7 +271,7 @@ int dir_cmp(const void *a, const void *b) atoi( &((fileheader_t *)b)->filename[2] )); } -void merge_dir(char *dir1, char *dir2) +void merge_dir(char *dir1, char *dir2, int isoutter) { int i, pn, sn; fileheader_t *fh; @@ -293,13 +293,19 @@ void merge_dir(char *dir1, char *dir2) fh= (fileheader_t *)malloc( (pn+sn)*sizeof(fileheader_t)); get_records(dir1, fh, sizeof(fileheader_t), 1, pn); get_records(dir2, fh+pn, sizeof(fileheader_t), 1, sn); + if(isoutter) + { + for(i=0; i/dev/null ; mv fpg/home/bbs/home/%c/%s/man home/%c/%s", + cuser.userid[0], cuser.userid, userid[0], userid, cuser.userid[0], cuser.userid); system(buf); -- cgit v1.2.3