newlib: fixed incorrect work with relative path

(previously /sys/open.c buildpath added an extra slash
after the current working directory)

git-svn-id: svn://kolibrios.org@9346 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Coldy 2021-11-29 11:39:21 +00:00
parent 5e64693dd2
commit 603b599e0e

View File

@ -78,9 +78,11 @@ void buildpath(char *buf, const char* file)
if (*file == 0)
break;
++file;
continue;
//continue;
goto __do_until_slash;
}
*ptr++ = '/';
__do_until_slash:
if (*file == '/')
++file;
while (*file && *file!='/')