Commit 036b689f authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-12310 openat(<directory>, ...O_EXEC) fails on Illumos / Solaris

it could be
* O_SEARCH on Illumos
* O_EXEC on FreeBSD
* O_PATH on Linux
ugh
parent 786363e8
...@@ -89,9 +89,13 @@ void sf_free(void *ptr); ...@@ -89,9 +89,13 @@ void sf_free(void *ptr);
void my_error_unregister_all(void); void my_error_unregister_all(void);
#if !defined(O_PATH) && defined(O_EXEC) /* FreeBSD */ #ifndef O_PATH /* not Linux */
#if defined(O_SEARCH) /* Illumos */
#define O_PATH O_SEARCH
#elif defined(O_EXEC) /* FreeBSD */
#define O_PATH O_EXEC #define O_PATH O_EXEC
#endif #endif
#endif
#ifdef O_PATH #ifdef O_PATH
#define HAVE_OPEN_PARENT_DIR_NOSYMLINKS #define HAVE_OPEN_PARENT_DIR_NOSYMLINKS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment