X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a259594cc41e41bfbb90562d3977b8194d1446f5..2daf28cdb048aa7276f05e19980b0a818e82fcf1:/sbr/folder_delmsgs.c diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 4567f6d1..b812def1 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -2,8 +2,6 @@ /* * folder_delmsgs.c -- "remove" SELECTED messages from a folder * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -59,7 +57,7 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook) fflush (stdout); vec[0] = r1bindex (rmmproc, '/'); - switch (pid = vfork()) { + switch (pid = m_vfork()) { case -1: advise ("fork", "unable to"); return -1; @@ -93,7 +91,7 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook) */ if (!nohook) { - (void)snprintf(msgpath, sizeof (msgpath), "%s/%d", getcwd(msgpath, sizeof (msgpath)), msgnum); + (void)snprintf(msgpath, sizeof (msgpath), "%s/%d", mp->foldpath, msgnum); (void)ext_hook("del-hook", msgpath, (char *)0); }