From 51024aab674eea0315af8320ac032ca0fdfd7931 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 29 Jul 1997 02:25:21 +0000 Subject: use sendmail -t --- gnu/usr.bin/rcs/src/rcs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/usr.bin/rcs/src/rcs.c b/gnu/usr.bin/rcs/src/rcs.c index f4625b12183..938624ca217 100644 --- a/gnu/usr.bin/rcs/src/rcs.c +++ b/gnu/usr.bin/rcs/src/rcs.c @@ -29,6 +29,9 @@ Report problems and direct all questions to: /* * $Log: rcs.c,v $ + * Revision 1.2 1997/07/29 02:25:20 deraadt + * use sendmail -t + * * Revision 1.1 1996/08/12 04:08:12 millert * rcs 5.7 + OpenBSD changes * @@ -279,7 +282,7 @@ static struct delrevpair delrev; static struct hshentry *cuthead, *cuttail, *delstrt; static struct hshentries *gendeltas; -mainProg(rcsId, "rcs", "$Id: rcs.c,v 1.1 1996/08/12 04:08:12 millert Exp $") +mainProg(rcsId, "rcs", "$Id: rcs.c,v 1.2 1997/07/29 02:25:20 deraadt Exp $") { static char const cmdusage[] = "\nrcs usage: rcs -{ae}logins -Afile -{blu}[rev] -cstring -{iILqTU} -ksubst -mrev:msg -{nN}name[:[rev]] -orange -sstate[:rev] -t[text] -Vn -xsuff -zzone file ..."; @@ -1038,7 +1041,7 @@ sendmail(Delta, who) efaterror(messagefile); } - aprintf(mailmess, "Subject: Broken lock on %s\n\nYour lock on revision %s of file %s\nhas been broken by %s for the following reason:\n", + aprintf(mailmess, "To: %s\nSubject: Broken lock on %s\n\nYour lock on revision %s of file %s\nhas been broken by %s for the following reason:\n", who, basefilename(RCSname), Delta, getfullRCSname(), getcaller() ); aputs("State the reason for breaking the lock:\n(terminate with single '.' or end of file)\n>> ", stderr); @@ -1064,7 +1067,7 @@ sendmail(Delta, who) } Orewind(mailmess); aflush(mailmess); - status = run(fileno(mailmess), (char*)0, SENDMAIL, who, (char*)0); + status = run(fileno(mailmess), (char*)0, SENDMAIL, "-t", (char*)0); Ozclose(&mailmess); if (status == 0) return true; -- cgit v1.2.3