mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
Cygwin: link: Simplify an expression
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
ce0b11f9c4
commit
0b0b2b96f2
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user