#endif
-const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.1 2003-01-21 03:32:17 charles Exp $";
+const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.2 2003-01-31 00:57:35 charles Exp $";
// configurationList is the list of devices that are supported
static yaffsfs_DeviceConfiguration *yaffsfs_configurationList;
{
// Let's see if we can create this file
dir = yaffsfs_FindDirectory(NULL,path,&name,0);
- obj = yaffs_MknodFile(dir,name,mode,0,0);
+ if(dir)
+ {
+ obj = yaffs_MknodFile(dir,name,mode,0,0);
+ }
+ else
+ {
+ } yaffsfs_SetError(-ENOTDIR);
}
if(obj && !openDenied)