summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/rcs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-29 02:25:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-29 02:25:21 +0000
commit51024aab674eea0315af8320ac032ca0fdfd7931 (patch)
treef4a03dc2188c97e090fde483cb12748992d17091 /gnu/usr.bin/rcs
parent11ff06d95851de66e07abccbd729af8bd3d2c84b (diff)
use sendmail -t
Diffstat (limited to 'gnu/usr.bin/rcs')
-rw-r--r--gnu/usr.bin/rcs/src/rcs.c9
1 files 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;