Cygwin: disable creating directories below /dev/mqueue

...as on Linux.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2021-05-25 22:05:13 +02:00
parent 90e5dbfc24
commit fd3fb7a147
2 changed files with 8 additions and 0 deletions

View File

@ -3151,6 +3151,7 @@ public:
void fixup_after_fork (HANDLE);
int mkdir (mode_t);
void __reg3 read (void *, size_t&);
off_t lseek (off_t, int);
int __reg2 fstat (struct stat *);

View File

@ -368,6 +368,13 @@ fhandler_mqueue::get_proc_fd_name (char *buf)
return strcpy (buf, strrchr (get_name (), '/'));
}
int
fhandler_mqueue::mkdir (mode_t mode)
{
set_errno (EPERM);
return -1;
}
/* Do what fhandler_virtual does for read/lseek */
bool
fhandler_mqueue::fill_filebuf ()