diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-03 02:24:15 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-03 02:24:15 +0800 |
commit | 12313f0ae70508c713537b6ce3a011503bf51701 (patch) | |
tree | 405332e3f5baf27f8a3504a1ad3f1eca7480ff6a /mbbsd/merge.c | |
parent | c7b8d6a06a0de11a52948e9f397dc747ccc6c8fd (diff) | |
download | pttbbs-12313f0ae70508c713537b6ce3a011503bf51701.tar pttbbs-12313f0ae70508c713537b6ce3a011503bf51701.tar.gz pttbbs-12313f0ae70508c713537b6ce3a011503bf51701.tar.bz2 pttbbs-12313f0ae70508c713537b6ce3a011503bf51701.tar.lz pttbbs-12313f0ae70508c713537b6ce3a011503bf51701.tar.xz pttbbs-12313f0ae70508c713537b6ce3a011503bf51701.tar.zst pttbbs-12313f0ae70508c713537b6ce3a011503bf51701.zip |
Merge different version of "personal abstract" from SOB user.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2306 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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') { |