char **argp, **arguments, *vec[MAXARGS];
struct utmpx *utp;
- if (nmh_init(argv[0], 1)) { return 1; }
+ if (nmh_init(argv[0], 2)) { return 1; }
mts_init ();
arguments = getarguments (invo_name, argc, argv, 1);
struct stat st;
if ((tfile = m_mktemp2(NULL, invo_name, &fd, NULL)) == NULL) {
- advise(NULL, "unable to create temporary file in %s", get_temp_dir());
+ inform("unable to create temporary file in %s", get_temp_dir());
return NOTOK;
}
(void) m_unlink(tfile); /* Use fd, no longer need the file name. */
/* fork error */
close (fd);
return header_fd ();
- } else if (child_id) {
+ }
+ if (child_id) {
/* parent process */
if (!setjmp (myctx)) {
SIGNAL (SIGALRM, alrmser);
charstring_t scanl = NULL;
if ((tfile = m_mktemp2(NULL, invo_name, &fd, NULL)) == NULL) {
- advise(NULL, "unable to create temporary file in %s", get_temp_dir());
+ inform("unable to create temporary file in %s", get_temp_dir());
return NOTOK;
}
(void) m_unlink(tfile); /* Use fd, no longer need the file name. */