Skip to content

Commit d68e701

Browse files
committed
skip shadow call when euid > 0 on linux
Resolves #16637 maybe __linux__ is not restrictive enough and we could consider using a hint sh file to enable it only on some specific distro?
1 parent 913b4d0 commit d68e701

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pp_sys.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5509,7 +5509,11 @@ PP(pp_gpwent)
55095509
* --jhi */
55105510
/* Some AIX setups falsely(?) detect some getspnam(), which
55115511
* has a different API than the Solaris/IRIX one. */
5512+
55125513
# if defined(HAS_GETSPNAM) && !defined(_AIX)
5514+
# ifdef __linux__
5515+
if (!PerlProc_geteuid())
5516+
# endif
55135517
{
55145518
dSAVE_ERRNO;
55155519
const struct spwd * const spwent = getspnam(pwent->pw_name);

0 commit comments

Comments
 (0)