X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/11eaebe50c6562b8919bc8d2a457c87269083818..8aeb28b95bce93b69967f612ee437b66b61a332b:/uip/sendsbr.c diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 9c443005..c7d788fd 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -122,7 +122,7 @@ sendsbr (char **vec, int vecp, char *program, char *draft, struct stat *st, break; default: - if (pidXwait(child, buildmimeproc)) + if (pidXwait(child, buildmimeproc)) return NOTOK; break; } @@ -337,7 +337,7 @@ alert (char *file, int out) arglist = argsplit(mailproc, &program, &argp); - arglist[argp++] = getusername(); + arglist[argp++] = getusername(1); arglist[argp++] = "-subject"; arglist[argp++] = buf; arglist[argp] = NULL; @@ -347,7 +347,7 @@ alert (char *file, int out) perror (mailproc); _exit(1); - default: /* no waiting... */ + default: /* no waiting... */ break; } } @@ -390,7 +390,7 @@ anno (int fd, struct stat *st) child_id = debugsw ? NOTOK : fork (); switch (child_id) { - case NOTOK: /* oops */ + case NOTOK: /* oops */ if (!debugsw) inform("unable to fork, so doing annotations by hand..."); if (cwd == NULL) @@ -420,7 +420,7 @@ anno (int fd, struct stat *st) } break; - default: /* no waiting... */ + default: /* no waiting... */ close (fd); break; } @@ -592,7 +592,7 @@ setup_oauth_params(char *vec[], int *vecp, const char *auth_svc, if (saslmech && ! strcasecmp(saslmech, "xoauth2")) { if (! mh_oauth_get_service_info(auth_svc, &svc, errbuf, - sizeof(errbuf))) + sizeof(errbuf))) die("Unable to retrieve oauth profile entries: %s", errbuf);