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:
parent
6407da947d
commit
d085592daa
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user