Change dir gives error for path too long, 2025 without test.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@310 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
e43dc517fa
commit
6c76f67376
@ -44,6 +44,6 @@ static BYTE *date_hRcsId = "$Id$";
|
||||
#define REVISION_MINOR 1
|
||||
#define REVISION_SEQ 25
|
||||
#define BUILD "2025"
|
||||
#define SUB_BUILD "test"
|
||||
#define SUB_BUILD ""
|
||||
#define KERNEL_VERSION_STRING "1.1.25" /*#REVISION_MAJOR "." #REVISION_MINOR "." #REVISION_SEQ*/
|
||||
#define KERNEL_BUILD_STRING "2025test" /*#BUILD SUB_BUILD*/
|
||||
#define KERNEL_BUILD_STRING "2025" /*#BUILD SUB_BUILD*/
|
||||
|
@ -37,8 +37,8 @@ static BYTE *dosfnsRcsId = "$Id$";
|
||||
* /// Added SHARE support. 2000/09/04 Ron Cemer
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.27 2001/09/24 02:21:14 bartoldeman
|
||||
* SYS and printer fixes
|
||||
* Revision 1.28 2001/09/26 01:06:05 bartoldeman
|
||||
* Change dir gives error for path too long, 2025 without test.
|
||||
*
|
||||
* Revision 1.26 2001/09/23 20:39:44 bartoldeman
|
||||
* FAT32 support, misc fixes, INT2F/AH=12 support, drive B: handling
|
||||
@ -1326,6 +1326,9 @@ COUNT DosChangeDir(BYTE FAR * s)
|
||||
cdsp = &CDSp->cds_table[drive];
|
||||
current_ldt = cdsp;
|
||||
|
||||
if (strlen(PriPathName) > sizeof(cdsp->cdsCurrentPath)-1)
|
||||
return DE_PATHNOTFND;
|
||||
|
||||
if (cdsp->cdsFlags & CDSNETWDRV)
|
||||
{
|
||||
#if defined(CHDIR_DEBUG)
|
||||
|
Loading…
Reference in New Issue
Block a user