mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 03:27:46 +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
d7a76c6b64
commit
f1189d596e
@ -3292,6 +3292,12 @@ mknod (const char *path, mode_t mode, dev_t dev)
|
|||||||
__leave;
|
__leave;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (w32path.fs_is_nfs ())
|
||||||
|
{
|
||||||
|
set_errno (EPERM);
|
||||||
|
__leave;
|
||||||
|
}
|
||||||
|
|
||||||
return mknod_worker (w32path, mode, major, minor);
|
return mknod_worker (w32path, mode, major, minor);
|
||||||
}
|
}
|
||||||
__except (EFAULT)
|
__except (EFAULT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user