In the function yaffsfs_DoUnlink() I found the following which seems to me like duplicate code, but it won't break anything: else if(isDirectory && obj->variantType != YAFFS_OBJECT_TYPE_DIRECTORY) { yaffsfs_SetError(-YAFFS_ENOTDIR, YAFFS_FILE, __LINE__); } else if(isDirectory && obj->variantType != YAFFS_OBJECT_TYPE_DIRECTORY) { yaffsfs_SetError(-YAFFS_ENOTDIR, YAFFS_FILE, __LINE__); } regards Johann Kok ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This e-mail and its contents are subject to the Telkom SA Limited e-mail legal notice available at http://www.telkom.co.za/TelkomEMailLegalNotice.PDF ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~