Import ncpfs 0.19
This commit is contained in:
@@ -723,6 +723,11 @@ ncp_find_dir_inode(struct inode *dir, const char *name)
|
||||
if ( (result->dir->finfo.i.DosDirNum == dir_info->DosDirNum)
|
||||
&& (result->dir->finfo.i.volNumber == dir_info->volNumber)
|
||||
&& (strcmp(result->finfo.i.entryName, name) == 0)
|
||||
/* The root dir is never looked up using this
|
||||
* routine. Without the following test a root
|
||||
* directory 'sys' in a volume named 'sys' could
|
||||
* never be looked up, because
|
||||
* server->root->dir==server->root. */
|
||||
&& (result != &(server->root)))
|
||||
{
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user