mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
* 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>
|
2012-06-03 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||||
|
|
||||||
* dtable.cc (dtable::dup3): Only return with lock set when O_EXCL flag
|
* 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);
|
status = NtSetInformationFile (fh, &io, pfli, size, FileLinkInformation);
|
||||||
if (!NT_SUCCESS (status))
|
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. */
|
/* FS doesn't support hard links. Linux returns EPERM. */
|
||||||
set_errno (EPERM);
|
set_errno (EPERM);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user