summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-07-27 20:01:36 +0000
committerderaadt <deraadt@openbsd.org>1997-07-27 20:01:36 +0000
commitca713159e5f7c953f13221ab9ade3acd49b54e46 (patch)
tree63603884045454c1be3f224c4e6deb3e9aa15fca
parentUse .Sq. (diff)
downloadwireguard-openbsd-ca713159e5f7c953f13221ab9ade3acd49b54e46.tar.xz
wireguard-openbsd-ca713159e5f7c953f13221ab9ade3acd49b54e46.zip
use sendmail -t
-rw-r--r--usr.sbin/lpr/lpd/printjob.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c
index f66ac4f0895..03f9e80207d 100644
--- a/usr.sbin/lpr/lpd/printjob.c
+++ b/usr.sbin/lpr/lpd/printjob.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printjob.c,v 1.16 1997/07/25 20:12:12 mickey Exp $ */
+/* $OpenBSD: printjob.c,v 1.17 1997/07/27 20:01:36 deraadt Exp $ */
/* $NetBSD: printjob.c,v 1.9.4.3 1996/07/12 22:31:39 jtc Exp $ */
/*
@@ -1046,7 +1046,6 @@ sendmail(user, bombed)
register int i, nofile;
int p[2], s;
register char *cp = NULL;
- char buf[100];
struct stat stb;
FILE *fp;
@@ -1062,8 +1061,7 @@ sendmail(user, bombed)
cp++;
else
cp = _PATH_SENDMAIL;
- snprintf(buf, sizeof buf, "%s@%s", user, fromhost);
- execl(_PATH_SENDMAIL, cp, buf, 0);
+ execl(_PATH_SENDMAIL, cp, "-t", 0);
exit(0);
} else if (s > 0) { /* parent */
dup2(p[1], 1);