From e644996aa66e0e3f1ab9c14ef3135bfde2dd5912 Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 14 Nov 2003 23:03:42 +0000 Subject: git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1336 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/announce.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'mbbsd/announce.c') diff --git a/mbbsd/announce.c b/mbbsd/announce.c index c3a267a9..c316db20 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -346,20 +346,19 @@ a_pasteitem(menu_t * pm, int mode) if (HAS_PERM(PERM_BBSADM)) Link(copyfile, newpath); else { - snprintf(buf, sizeof(buf), - "/bin/cp %s %s", copyfile, newpath); - system(buf); + Copy(copyfile, newpath); } } else if (dashf(copyfile)) { stampfile(newpath, &item); memcpy(copytitle, "¡º", 2); - snprintf(buf, sizeof(buf), "/bin/cp %s %s", copyfile, newpath); + Copy(copyfile, newpath); } else if (dashd(copyfile)) { stampdir(newpath, &item); memcpy(copytitle, "¡»", 2); snprintf(buf, sizeof(buf), "/bin/cp -r %s/* %s/.D* %s", copyfile, copyfile, newpath); + system(buf); } else { outs("µLªk«þ¨©¡I"); igetch(); @@ -368,8 +367,6 @@ a_pasteitem(menu_t * pm, int mode) strlcpy(item.owner, *copyowner ? copyowner : cuser.userid, sizeof(item.owner)); strlcpy(item.title, copytitle, sizeof(item.title)); - if (!*copyowner) - system(buf); a_additem(pm, &item); copyfile[0] = '\0'; } -- cgit v1.2.3