From e48b5552a37da3def071a0a65f46fe20473807c6 Mon Sep 17 00:00:00 2001 From: rob Date: Tue, 15 May 2007 09:22:44 +0000 Subject: [PATCH] r26406@plastic: rob | 2007-05-15 17:39:25 +1000 FINDUPDATE (MODE_READWRITE) should create the file if its not there. gurubook contradicts itself on this one git-svn-id: https://svn.aros.org:8080/svn/aros/trunk/AROS@26075 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/fs/fat/ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workbench/fs/fat/ops.c b/workbench/fs/fat/ops.c index 97a7ecb15..3100e4fdb 100644 --- a/workbench/fs/fat/ops.c +++ b/workbench/fs/fat/ops.c @@ -188,8 +188,8 @@ LONG OpOpenFile(struct ExtFileLock *dirlock, UBYTE *name, ULONG namelen, LONG ac if (err != ERROR_OBJECT_NOT_FOUND) return err; - /* not found. for INPUT or UPDATE, we bail out */ - if (action != ACTION_FINDOUTPUT) { + /* not found. for INPUT we bail out */ + if (action == ACTION_FINDINPUT) { D(bug("[fat] file not found, and not creating it\n")); return ERROR_OBJECT_NOT_FOUND; } -- 2.11.4.GIT