From: Yann Collet Date: Thu, 17 Oct 2019 21:31:42 +0000 (-0700) Subject: fixed isSameFile() X-Git-Tag: v1.4.4~1^2~23^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=157479af0cc0611bedf3c5c1987971b761620eb1;p=thirdparty%2Fzstd.git fixed isSameFile() --- diff --git a/programs/util.c b/programs/util.c index 321da066a..dbdd1cee4 100644 --- a/programs/util.c +++ b/programs/util.c @@ -114,7 +114,7 @@ int UTIL_isSameFile(const char* fName1, const char* fName2) * inode does not work on Windows, even with a posix layer, like msys2. * The following work-around is limited to detecting exact name repetition only, * aka `filename` is considered different from `subdir/../filename` */ - return !strcmp(file1, file2); + return !strcmp(fName1, fName2); #else { stat_t file1Stat; stat_t file2Stat;