X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/64e8827c5d5def0325ab7181fe939623c77e807c..ea855e72d026c72658d43f993fc62cfcf2de2ca3:/uip/whom.c diff --git a/uip/whom.c b/uip/whom.c index 8973c762..2a36025a 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -63,11 +63,7 @@ main (int argc, char **argv) char *msg = NULL, **ap, **argp, backup[BUFSIZ]; char buf[BUFSIZ], **arguments, *vec[MAXARGS]; - setlocale(LC_ALL, ""); - invo_name = r1bindex (argv[0], '/'); - - /* read user profile/context */ - context_read(); + if (nmh_init(argv[0], 1)) { return 1; } arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; @@ -200,7 +196,7 @@ main (int argc, char **argv) status = pidwait(child_id, OK); - unlink (msg); + (void) m_unlink (msg); if (rename (backup, msg) == NOTOK) adios (msg, "unable to rename %s to", backup); done (status);