- * If you have a "rmmproc" defined, we called that
- * to remove all the specified files. If "rmmproc"
- * is not defined, then just unlink the files.
- */
-
-static void
-remove_files (int filep, char **files)
-{
- int i;
- char **vec;
-
- /* If rmmproc is defined, we use that */
- if (rmmproc) {
- vec = files++; /* vec[0] = filevec[0] */
- files[filep] = NULL; /* NULL terminate list */
-
- fflush (stdout);
- vec[0] = r1bindex (rmmproc, '/');
- execvp (rmmproc, vec);
- adios (rmmproc, "unable to exec");
- }
-
- /* Else just unlink the files */
- files++; /* advance past filevec[0] */
- for (i = 0; i < filep; i++) {
- if (unlink (files[i]) == NOTOK)
- admonish (files[i], "unable to unlink");
- }
-}
-
-
-/*
- * Link (or copy) the message into each of
- * the destination folders.
- */
-