aboutsummaryrefslogtreecommitdiff
path: root/libbb/xreadlink.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libbb/xreadlink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c
index ca53e12d3..f0a63fd9b 100644
--- a/libbb/xreadlink.c
+++ b/libbb/xreadlink.c
@@ -76,7 +76,11 @@ char* FAST_FUNC xmalloc_follow_symlinks(const char *path)
76 return NULL; 76 return NULL;
77 } 77 }
78 78
79#if ENABLE_PLATFORM_MINGW32
80 if (!is_absolute_path(linkpath)) {
81#else
79 if (*linkpath != '/') { 82 if (*linkpath != '/') {
83#endif
80 bufsize += strlen(linkpath); 84 bufsize += strlen(linkpath);
81 buf = xrealloc(buf, bufsize); 85 buf = xrealloc(buf, bufsize);
82 lpc = bb_get_last_path_component_strip(buf); 86 lpc = bb_get_last_path_component_strip(buf);