diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-07-19 22:28:02 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-07-19 22:28:02 +0000 |
commit | 20aab260e2f7011523402464fb079f48e5899890 (patch) | |
tree | f7822e652f54884459d525f57f1ef18c03a126f7 /editors/vi.c | |
parent | 0382eb886529fc4dab170e7d66883c20fe0e2883 (diff) | |
download | busybox-w32-20aab260e2f7011523402464fb079f48e5899890.tar.gz busybox-w32-20aab260e2f7011523402464fb079f48e5899890.tar.bz2 busybox-w32-20aab260e2f7011523402464fb079f48e5899890.zip |
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
Diffstat (limited to 'editors/vi.c')
-rw-r--r-- | editors/vi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/vi.c b/editors/vi.c index f75c884eb..cfdc29fcb 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | static const char vi_Version[] = | 21 | static const char vi_Version[] = |
22 | "$Id: vi.c,v 1.12 2001/07/17 01:12:36 andersen Exp $"; | 22 | "$Id: vi.c,v 1.13 2001/07/19 22:28:01 andersen Exp $"; |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * To compile for standalone use: | 25 | * To compile for standalone use: |
@@ -3554,7 +3554,7 @@ static int file_write(Byte * fn, Byte * first, Byte * last) | |||
3554 | } | 3554 | } |
3555 | charcnt = 0; | 3555 | charcnt = 0; |
3556 | // FIXIT- use the correct umask() | 3556 | // FIXIT- use the correct umask() |
3557 | fd = open((char *) fn, (O_RDWR | O_CREAT | O_TRUNC), 0664); | 3557 | fd = open((char *) fn, (O_WRONLY | O_CREAT | O_TRUNC), 0664); |
3558 | if (fd < 0) | 3558 | if (fd < 0) |
3559 | return (-1); | 3559 | return (-1); |
3560 | cnt = last - first + 1; | 3560 | cnt = last - first + 1; |