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 d7a76c6b64
commit f1189d596e
1 changed files with 6 additions and 0 deletions

View File

@ -3292,6 +3292,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)