#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
- invo_name = r1bindex(argv[0], '/');
+ invo_name = mhbasename(argv[0]);
/* foil search of user profile/context */
if (context_foil(NULL) == -1)
cpydgst(fd, fileno(out), tmpfil, bccfil);
close(fd);
} else {
- vec[0] = r1bindex(mhlproc, '/');
+ vec[0] = mhbasename(mhlproc);
for (i = 0; (child_id = vfork()) == NOTOK && i < 5; i++)
sleep(5);
case OK:
snprintf(fold, sizeof(fold), "%s%s",
*folder == '+' || *folder == '@' ? "" : "+", folder);
- execlp(fileproc, r1bindex(fileproc, '/'),
+ execlp(fileproc, mhbasename(fileproc),
"-link", "-file", file, fold, NULL);
_exit(-1);