Skip to content

Commit

Permalink
Cygwin: mknod: disable creating special files on NFS
Browse files Browse the repository at this point in the history
This simply doesn't work (yet?) but leaves unusable files behind.

Signed-off-by: Corinna Vinschen <[email protected]>
  • Loading branch information
github-cygwin committed Aug 25, 2023
1 parent 6407da9 commit d085592
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions winsup/cygwin/syscalls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d085592

Please sign in to comment.