NCP23/F4: Map PATH TO Dir Entry allow Files
All checks were successful
Source release / source-package (push) Successful in 38s
All checks were successful
Source release / source-package (push) Successful in 38s
This commit is contained in:
@@ -2347,7 +2347,14 @@ int conn_map_path_to_dir_entry(int dirhandle, uint8 *data, int len,
|
||||
if (volume < 0) return(volume);
|
||||
if (s_stat(unixname, &stbuff, NULL)) return(-0x9c);
|
||||
|
||||
if (!S_ISDIR(stbuff.st_mode)) return(-0x9c);
|
||||
/*
|
||||
* NCP23/F4 maps a path to a namespace entry number. Despite the
|
||||
* historical "Dir Entry" wording, clients may use the returned number
|
||||
* for file entries as well as directory entries, and NCP23/F3 maps that
|
||||
* number back to a component path. Therefore do not reject regular
|
||||
* files here; any stat'able volume entry that can be represented by the
|
||||
* namespace handle table is valid.
|
||||
*/
|
||||
|
||||
{
|
||||
DEV_NAMESPACE_MAP dnm;
|
||||
|
||||
Reference in New Issue
Block a user