From 406d99ae9bef1f26f5180a5e1c3118fda96ec4e3 Mon Sep 17 00:00:00 2001 From: Felix von Leitner Date: Mon, 28 Jan 2002 02:25:24 +0000 Subject: [PATCH] oops, open_write did not create the file --- Makefile | 2 +- open/open_write.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 065e41b..7e5b199 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ clean: install: libowfat.a install -d $(INCLUDEDIR) $(MAN3DIR) $(LIBDIR) - install -m 644 buffer.h byte.h fmt.h ip4.h ip6.h mmap.h open.h scan.h socket.h str.h stralloc.h uint16.h uint32.h uint64.h $(prefix)/include + install -m 644 buffer.h byte.h fmt.h ip4.h ip6.h mmap.h open.h scan.h socket.h str.h stralloc.h uint16.h uint32.h uint64.h open.h $(prefix)/include install -m 644 $(wildcard */*.3) $(MAN3DIR) install -m 644 libowfat.a $(LIBDIR) diff --git a/open/open_write.c b/open/open_write.c index 49c338c..86f373e 100644 --- a/open/open_write.c +++ b/open/open_write.c @@ -3,5 +3,5 @@ #include "open.h" extern int open_write(const char *filename) { - return open(filename,O_WRONLY|O_NDELAY); + return open(filename,O_WRONLY|O_CREAT|O_NDELAY); }