diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-01-19 04:11:30 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-01-19 04:11:30 +0000 |
commit | 1ec03c593543ff3451fb2102f094e2e24f111e46 (patch) | |
tree | 303fe19a67b8109fe4705e54afbebd2c5ebe2cd2 /usr.bin/mail/edit.c | |
parent | b437ae218247a3d530da3d58127427977617d279 (diff) |
More fixes from Don Beusee:
- edit and other interactive commands have no stdin (making the
command completely broken).
- messages with "From " line having date format with -0800 type of timezone
are not recognized correctly.
Diffstat (limited to 'usr.bin/mail/edit.c')
-rw-r--r-- | usr.bin/mail/edit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/edit.c b/usr.bin/mail/edit.c index 04e7ace6ea5..90cf18607fc 100644 --- a/usr.bin/mail/edit.c +++ b/usr.bin/mail/edit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.8 2000/06/30 16:00:18 millert Exp $ */ +/* $OpenBSD: edit.c,v 1.9 2001/01/19 04:11:28 millert Exp $ */ /* $NetBSD: edit.c,v 1.5 1996/06/08 19:48:20 christos Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)edit.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: edit.c,v 1.8 2000/06/30 16:00:18 millert Exp $"; +static char rcsid[] = "$OpenBSD: edit.c,v 1.9 2001/01/19 04:11:28 millert Exp $"; #endif #endif /* not lint */ @@ -196,7 +196,7 @@ run_editor(fp, size, type, readonly) nf = NULL; if ((edit = value(type == 'e' ? "EDITOR" : "VISUAL")) == NULL) edit = type == 'e' ? _PATH_EX : _PATH_VI; - if (run_command(edit, 0, -1, -1, tempname, NULL, NULL) < 0) { + if (run_command(edit, 0, 0, -1, tempname, NULL, NULL) < 0) { (void)rm(tempname); goto out; } |