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:
parent
61401f24ef
commit
7909b528e5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue