cygcheck: Fix check for Cygwin symlink

Fixes Coverity CID 66904 and 66906

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-10-22 22:44:25 +02:00
parent 61401f24ef
commit 7909b528e5
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ is_symlink (HANDLE fh)
}
else /* magic == SYMLINK_MAGIC */
{
if (!local.dwFileAttributes & FILE_ATTRIBUTE_SYSTEM)
if (!(local.dwFileAttributes & FILE_ATTRIBUTE_SYSTEM))
goto out; /* Not a Cygwin symlink. */
char buf[sizeof (SYMLINK_COOKIE) - 1];
SetFilePointer (fh, 0, 0, FILE_BEGIN);