From: Eric Andersen Date: Wed, 31 Mar 2004 11:12:51 +0000 (-0000) Subject: Patch from Thomas Winkler -- vi -R did not work X-Git-Tag: 1_00_pre9~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=90fb65f7a60f70fc2c9d072780378286dee2ee85;p=oweals%2Fbusybox.git Patch from Thomas Winkler -- vi -R did not work --- diff --git a/editors/vi.c b/editors/vi.c index 28eca754a..0ed9edd6e 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -19,7 +19,7 @@ */ static const char vi_Version[] = - "$Id: vi.c,v 1.34 2004/03/15 08:28:32 andersen Exp $"; + "$Id: vi.c,v 1.35 2004/03/31 11:12:51 andersen Exp $"; /* * To compile for standalone use: @@ -375,6 +375,7 @@ extern int vi_main(int argc, char **argv) #ifdef CONFIG_FEATURE_VI_READONLY case 'R': // Read-only flag readonly = TRUE; + vi_readonly = TRUE; break; #endif /* CONFIG_FEATURE_VI_READONLY */ //case 'r': // recover flag- ignore- we don't use tmp file