Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-06-04 12:49:13 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-06-04 12:49:13 +0400
commitcd69beda6725d2437a333d82417d58078f081c8f (patch)
treec4f304e859b4bbbb9584162f6d086854c046cef9 /winsup/cygwin/fhandler_disk_file.cc
parentb9c61a8d7b5b9bc43b3605c93fdee85c6dd04f13 (diff)
* fhandler_disk_file.cc (fhandler_disk_file::link ): Translate
STATUS_NOT_SUPPORTED to EPERM as well.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 1f47a35a9..2c63b6468 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -1283,7 +1283,8 @@ fhandler_disk_file::link (const char *newpath)
status = NtSetInformationFile (fh, &io, pfli, size, FileLinkInformation);
if (!NT_SUCCESS (status))
{
- if (status == STATUS_INVALID_DEVICE_REQUEST)
+ if (status == STATUS_INVALID_DEVICE_REQUEST
+ || status == STATUS_NOT_SUPPORTED)
{
/* FS doesn't support hard links. Linux returns EPERM. */
set_errno (EPERM);