X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_delmsgs.c;h=d6e63b6ccc0c43ca98e9ddc3cbfa1d12f6b1beb2;hp=77131b127a6210fee69e2fd829b3682da2787ded;hb=4c0c2fb7766546cb466f05f76e5febd5d8f682e0;hpb=714b5c530ece27ea2835a313013f5b770163403c diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 77131b1..d6e63b6 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -54,9 +54,9 @@ folder_delmsgs(struct msgs *mp, int unlink_msgs, int nohook) vec[vecp] = NULL; fflush(stdout); - vec[0] = r1bindex(rmmproc, '/'); + vec[0] = mhbasename(rmmproc); - switch (pid = vfork()) { + switch (pid = fork()) { case -1: advise("fork", "unable to"); return -1; @@ -92,8 +92,9 @@ folder_delmsgs(struct msgs *mp, int unlink_msgs, int nohook) */ if (!nohook) { - (void)snprintf(msgpath, sizeof (msgpath), "%s/%d", mp->foldpath, msgnum); - (void)ext_hook("del-hook", msgpath, (char *)0); + snprintf(msgpath, sizeof (msgpath), "%s/%d", + mp->foldpath, msgnum); + ext_hook("del-hook", msgpath, NULL); } dp = m_name(msgnum);