1 # Solaris-specific. The famous access(2) bug that will return
2 # X_OK even if the execute bit isn't set.
3 # So, we want to use stat(2) instead, which returns the actual
6 # I do know nothing about the mentioned bug, keeping the patch just to be sure.
8 # Not suitable for upstream
10 --- lib/sh/eaccess.c 2015-04-02 10:24:43.401129429 -0700
11 +++ lib/sh/eaccess.c 2015-04-02 10:28:57.704781076 -0700
13 if (path_is_devfd (path))
14 return (sh_stataccess (path, mode));
16 -#if (defined (HAVE_FACCESSAT) && defined (AT_EACCESS)) || defined (HAVE_EACCESS)
17 +#if ((defined (HAVE_FACCESSAT) && defined (AT_EACCESS)) || \
18 + defined (HAVE_EACCESS)) && !defined(SOLARIS)
19 # if defined (HAVE_FACCESSAT) && defined (AT_EACCESS)
20 ret = faccessat (AT_FDCWD, path, mode, AT_EACCESS);
21 # else /* HAVE_EACCESS */ /* FreeBSD */