From 603b599e0e116f6f7463c4304797494d9a8a3f2c Mon Sep 17 00:00:00 2001 From: Coldy Date: Mon, 29 Nov 2021 11:39:21 +0000 Subject: [PATCH] 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 --- contrib/sdk/sources/newlib/libc/sys/open.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/sdk/sources/newlib/libc/sys/open.c b/contrib/sdk/sources/newlib/libc/sys/open.c index 60158b820a..3ab1600c5a 100644 --- a/contrib/sdk/sources/newlib/libc/sys/open.c +++ b/contrib/sdk/sources/newlib/libc/sys/open.c @@ -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!='/')