From 20aab260e2f7011523402464fb079f48e5899890 Mon Sep 17 00:00:00 2001
From: Eric Andersen <andersen@codepoet.org>
Date: Thu, 19 Jul 2001 22:28:02 +0000
Subject: Some adjustments, mostly from David McCullough <davidm@lineo.com> to
 make busybox be more uClinux friendly.  I also adjusted Config.h for uClinux
 so it will automagically disable apps the arn't going to work without fork()
 and such.  -Erik

---
 vi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'vi.c')

diff --git a/vi.c b/vi.c
index f75c884eb..cfdc29fcb 100644
--- a/vi.c
+++ b/vi.c
@@ -19,7 +19,7 @@
  */
 
 static const char vi_Version[] =
-	"$Id: vi.c,v 1.12 2001/07/17 01:12:36 andersen Exp $";
+	"$Id: vi.c,v 1.13 2001/07/19 22:28:01 andersen Exp $";
 
 /*
  * To compile for standalone use:
@@ -3554,7 +3554,7 @@ static int file_write(Byte * fn, Byte * first, Byte * last)
 	}
 	charcnt = 0;
 	// FIXIT- use the correct umask()
-	fd = open((char *) fn, (O_RDWR | O_CREAT | O_TRUNC), 0664);
+	fd = open((char *) fn, (O_WRONLY | O_CREAT | O_TRUNC), 0664);
 	if (fd < 0)
 		return (-1);
 	cnt = last - first + 1;
-- 
cgit v1.2.3-55-g6feb