You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If You are useing kernel security module, such as LIDS, GrSec or Selinux it will work only if '/etc/passwd' is readable for user, under which PHP/Apache runs, otherwice you get FALSE.
In my case it's a chroot jail that's preventing access to /etc/passwd.
It would be nice if v_uname and v_gname could be set to an empty string in this case - just like it's done anyway in the else case.
The text was updated successfully, but these errors were encountered:
_writeHeaderBlock in vendor/pear/archive_tar/archive/tar.php contains:
But posix_getpwuid can in fact return false in a chroot jail. This unfortunately isn't documented here:
https://www.php.net/posix_getpwuid
But someone in the comments writes:
In my case it's a chroot jail that's preventing access to /etc/passwd.
It would be nice if v_uname and v_gname could be set to an empty string in this case - just like it's done anyway in the else case.
The text was updated successfully, but these errors were encountered: