Cygwin: link: Simplify an expression

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2017-11-14 21:29:08 +01:00
parent ce0b11f9c4
commit 0b0b2b96f2

View file

@ -1237,16 +1237,11 @@ fhandler_disk_file::link (const char *newpath)
{
if (status == STATUS_INVALID_DEVICE_REQUEST
|| status == STATUS_NOT_SUPPORTED)
{
/* FS doesn't support hard links. Linux returns EPERM. */
set_errno (EPERM);
return -1;
}
/* FS doesn't support hard links. Linux returns EPERM. */
set_errno (EPERM);
else
{
__seterrno_from_nt_status (status);
return -1;
}
__seterrno_from_nt_status (status);
return -1;
}
else if (pc.file_attributes () & FILE_ATTRIBUTE_TEMPORARY)
{