diff options
author | 2001-01-19 04:11:28 +0000 | |
---|---|---|
committer | 2001-01-19 04:11:28 +0000 | |
commit | cd7f95d953d9281aede5e329ea504032bb970902 (patch) | |
tree | 486c90f17938588dd357d91ee80d7599f09a9094 /usr.bin/mail/edit.c | |
parent | sync (diff) | |
download | wireguard-openbsd-cd7f95d953d9281aede5e329ea504032bb970902.tar.xz wireguard-openbsd-cd7f95d953d9281aede5e329ea504032bb970902.zip |
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; } |