diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-27 20:01:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-07-27 20:01:37 +0000 |
commit | 2a92c47fc4aaffca4add1324787d452ace0e19d7 (patch) | |
tree | ca57389a3f8c8457307576a8a50dc96f55edfc52 /usr.sbin | |
parent | 7c58cf6552d495bec93e59a3aebdf3feaace2498 (diff) |
use sendmail -t
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/lpr/lpd/printjob.c | 6 |
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); |