From 37b99d152c7784b458f6b3b7a5a6d2f29d0bb93d Mon Sep 17 00:00:00 2001 From: Yohei Endo Date: Mon, 30 Nov 2015 22:24:01 +0900 Subject: [PATCH] Fix build error when lstat is not supported --- src/lhext.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lhext.c b/src/lhext.c index d386bac..38447c2 100644 --- a/src/lhext.c +++ b/src/lhext.c @@ -99,6 +99,7 @@ make_name_with_pathcheck(char *name, size_t namesz, const char *q) offset += sz; } +#ifdef S_IFLNK while ((p = strchr(q, '/')) != NULL) { if (namesz - offset < (p - q) + 2) { return FALSE; @@ -118,6 +119,7 @@ make_name_with_pathcheck(char *name, size_t namesz, const char *q) } name[offset++] = '/'; } +#endif str_safe_copy(name + offset, q, namesz - offset); -- 2.11.0