* fhandler_disk_file.cc (fhandler_disk_file::link ): Translate

STATUS_NOT_SUPPORTED to EPERM as well.
This commit is contained in:
Corinna Vinschen 2012-06-04 08:49:13 +00:00
parent b9c61a8d7b
commit cd69beda67
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-06-04 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::link ): Translate
STATUS_NOT_SUPPORTED to EPERM as well.
2012-06-03 Christopher Faylor <me.cygwin2012@cgf.cx>
* dtable.cc (dtable::dup3): Only return with lock set when O_EXCL flag

View File

@ -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);