diff options
Diffstat (limited to 'mbbsd/merge.c')
-rw-r--r-- | mbbsd/merge.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mbbsd/merge.c b/mbbsd/merge.c index 3d1404f1..2668d059 100644 --- a/mbbsd/merge.c +++ b/mbbsd/merge.c @@ -151,13 +151,24 @@ m_sob() } if(getans("是否匯入個人信箱精華區(個人作品集)? (會覆蓋\現有設定) (y/N)")=='y') { + fileheader_t fh; sprintf(buf, - "rm -rd home/%c/%s/man>/dev/null ; mv sob/home/%c/%s/man home/%c/%s", + "rm -rd home/%c/%s/man>/dev/null ; " + "mv sob/home/%c/%s/man home/%c/%s>/dev/null;" + "mv sob/home/%c/%s/gem home/%c/%s/man>/dev/null", cuser.userid[0], cuser.userid, userid[0], userid, + cuser.userid[0], cuser.userid, + userid[0], userid, cuser.userid[0], cuser.userid); system(buf); strcat(msg, "匯入個人信箱精華區(個人作品集)\n"); + + strcat(fh.title, "◆ 個人作品集"); + strcat(fh.filename, "gem"); + sprintf(fh.owner, cuser.userid); + sprintf(buf, "home/%c/%s/man/.DIR", cuser.userid[0], cuser.userid); + append_record(buf, &fh, sizeof(fh)); } if(getans("是否匯入好友名單? (會覆蓋\現有設定, ID可能是不同人)? (y/N)")=='y') { |