mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-20 20:34:29 +02:00
Remove the wildcard check for DosChangeDir() because truename() already does
that. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1476 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
5ad1fd51e1
commit
1f17a5e5da
@ -907,18 +907,10 @@ COUNT DosGetCuDir(UBYTE drive, BYTE FAR * s)
|
||||
COUNT DosChangeDir(BYTE FAR * s)
|
||||
{
|
||||
COUNT result;
|
||||
BYTE FAR *p;
|
||||
|
||||
/* don't do wildcard CHDIR --TE */
|
||||
for (p = s; *p; p++)
|
||||
if (*p == '*' || *p == '?')
|
||||
return DE_PATHNOTFND;
|
||||
|
||||
result = truename(s, PriPathName, CDS_MODE_CHECK_DEV_PATH);
|
||||
if (result < SUCCESS)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
if ((FP_OFF(current_ldt) != 0xFFFF) &&
|
||||
(strlen(PriPathName) >= sizeof(current_ldt->cdsCurrentPath)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user