FreeBSD Bugzilla – Attachment 10528 Details for
Bug 21089
[patch] vi(1) silently corrupts open file on SIGINT when entering :wq in command mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
nvi-netbsd-v_ex.c-1.diff
nvi-netbsd-v_ex.c-1.diff (text/x-diff; charset=us-ascii), 672 bytes, created by
Jaakko Heinonen
on 2008-02-21 13:23:34 UTC
(
hide
)
Description:
nvi-netbsd-v_ex.c-1.diff
Filename:
MIME Type:
Creator:
Jaakko Heinonen
Created:
2008-02-21 13:23:34 UTC
Size:
672 bytes
patch
obsolete
>Obtained from: NetBSD > >date: 2005/09/06 21:21:25; author: aymeric; state: Exp; lines: +6 -2 >when reading an ex command within visual mode with v_tcmd(), check that >the termination value of v_tcmd() is alright. Abort the command otherwise. >Until the next commit in vi/v_txt.c, this is a noop. > >diff -u -r1.11 -r1.12 >--- v_ex.c 9 Apr 2002 01:47:35 -0000 1.11 >+++ v_ex.c 6 Sep 2005 21:21:25 -0000 1.12 >@@ -428,6 +428,10 @@ v_ex(sp, vp) > if (tp->term == TERM_BS) > break; > >+ /* If the user changed their mind, return. */ >+ if (tp->term != TERM_OK) >+ break; >+ > /* Log the command. */ > if (O_STR(sp, O_CEDIT) != NULL && v_ecl_log(sp, tp)) > return (1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 21089
:
10526
|
10527
| 10528 |
10529
|
10530
|
10531
|
10532