From b5cd41cdf4e6afd475fe34b755f99578e20b08ca Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 1 Mar 2021 09:37:50 +0000 Subject: libbb: fix detection of relative paths in xreadlink.c In xmalloc_follow_symlinks() the code to detect relative paths needs to be altered for WIN32. We don't want C:/path to be treated as a relative path. --- win32/mingw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32/mingw.c') diff --git a/win32/mingw.c b/win32/mingw.c index a222e6226..1a00787b7 100644 --- a/win32/mingw.c +++ b/win32/mingw.c @@ -843,7 +843,7 @@ int mingw_rename(const char *pold, const char *pnew) return -1; } if (MoveFileEx(pold, pnew, - MOVEFILE_REPLACE_EXISTING | MOVEFILE_COPY_ALLOWED)) + MOVEFILE_REPLACE_EXISTING | MOVEFILE_COPY_ALLOWED)) return 0; /* TODO: translate more errors */ if (GetLastError() == ERROR_ACCESS_DENIED && -- cgit v1.2.3-55-g6feb