diff options
author | Ron Yorston <rmy@pobox.com> | 2021-03-01 09:37:50 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-03-01 09:37:50 +0000 |
commit | b5cd41cdf4e6afd475fe34b755f99578e20b08ca (patch) | |
tree | 669463610c986ce3c1257ab02c2e51621b0bbef9 /win32 | |
parent | 4986a1248dcdb6f32a22321154dc26898f10d3ab (diff) | |
download | busybox-w32-symlink.tar.gz busybox-w32-symlink.tar.bz2 busybox-w32-symlink.zip |
libbb: fix detection of relative paths in xreadlink.csymlink
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.
Diffstat (limited to '')
-rw-r--r-- | win32/mingw.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
843 | return -1; | 843 | return -1; |
844 | } | 844 | } |
845 | if (MoveFileEx(pold, pnew, | 845 | if (MoveFileEx(pold, pnew, |
846 | MOVEFILE_REPLACE_EXISTING | MOVEFILE_COPY_ALLOWED)) | 846 | MOVEFILE_REPLACE_EXISTING | MOVEFILE_COPY_ALLOWED)) |
847 | return 0; | 847 | return 0; |
848 | /* TODO: translate more errors */ | 848 | /* TODO: translate more errors */ |
849 | if (GetLastError() == ERROR_ACCESS_DENIED && | 849 | if (GetLastError() == ERROR_ACCESS_DENIED && |