Fix problem with cd\ reported by ibid_ag@lavabit.com on the mailing list.

git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1468 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
Bart Oldeman 2009-07-01 02:43:21 +00:00
parent 70851fff0a
commit 2017b41dbb

View File

@ -90,6 +90,12 @@ f_node_ptr dir_open(register const char *dirname, BOOL split, f_node_ptr fnp)
/* skip the path seperator */ /* skip the path seperator */
++dirname; ++dirname;
/* don't continue if we're at the end: this check is */
/* for root directories, the only fully-qualified path */
/* names that end in a \ */
if (*dirname == '\0')
break;
/* Convert the name into an absolute name for */ /* Convert the name into an absolute name for */
/* comparison... */ /* comparison... */