X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Fyaffsfs.c;h=90046854ff29def2dc975bd03bc38173152d526a;hb=0a0da938621f6eec378c7b3c173ce815a786759f;hp=9ad08958520cfd8a3bf5b73006d16a4fde9a3899;hpb=cb6db8000bf9110fe422e80a78a0cae79ba48e73;p=yaffs2.git diff --git a/direct/yaffsfs.c b/direct/yaffsfs.c index 9ad0895..9004685 100644 --- a/direct/yaffsfs.c +++ b/direct/yaffsfs.c @@ -1,15 +1,14 @@ /* - * YAFFS: Yet another FFS. A NAND-flash specific file system. - * yaffsfs.c The interface functions for using YAFFS via a "direct" interface. + * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002 Aleph One Ltd. + * Copyright (C) 2002-2007 Aleph One Ltd. + * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. - * */ #include "yaffsfs.h" @@ -25,7 +24,7 @@ #endif -const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.14 2006-11-07 23:37:43 charles Exp $"; +const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.17 2007-02-14 01:09:06 wookey Exp $"; // configurationList is the list of devices that are supported static yaffsfs_DeviceConfiguration *yaffsfs_configurationList; @@ -729,10 +728,6 @@ int yaffsfs_DoUnlink(const char *path,int isDirectory) { yaffsfs_SetError(-ENOTDIR); } - else if(isDirectory && obj->variantType != YAFFS_OBJECT_TYPE_DIRECTORY) - { - yaffsfs_SetError(-ENOTDIR); - } else { result = yaffs_Unlink(dir,name);