Patch from Thomas Winkler -- vi -R did not work
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 31 Mar 2004 11:12:51 +0000 (11:12 +0000)
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Wed, 31 Mar 2004 11:12:51 +0000 (11:12 +0000)
git-svn-id: svn://busybox.net/trunk/busybox@8673 69ca8d6d-28ef-0310-b511-8ec308f3f277

editors/vi.c

index 28eca75..0ed9edd 100644 (file)
@@ -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