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
1 changed files with 4 additions and 9 deletions

View File

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