perl/Module-Build-Tiny: update to 0.051 for Perl 5.36 and 5.38
[oi-userland.git] / components / shell / bash / patches / solaris-023.eaccess.c.patch
blob037d9f67c592a6f1db060baab10d073194253a99
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
4 # permission bits.
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
12 @@ -211,7 +211,8 @@
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 */