* fhandler_disk_file.cc (fhandler_disk_file::link ): Translate
STATUS_NOT_SUPPORTED to EPERM as well.
This commit is contained in:
parent
b9c61a8d7b
commit
cd69beda67
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue