4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 12:59:21 +08:00

Cygwin: mknod: disable creating special files on NFS

This simply doesn't work (yet?) but leaves unusable files behind.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2023-08-25 14:39:04 +02:00
parent 6407da947d
commit d085592daa

View File

@ -3294,6 +3294,12 @@ mknod (const char *path, mode_t mode, dev_t dev)
__leave;
}
if (w32path.fs_is_nfs ())
{
set_errno (EPERM);
__leave;
}
return mknod_worker (w32path, mode, major, minor);
}
__except (EFAULT)