Unable to use "_PC_CHOWN_RESTRICTED" in Perl on RHEL 8
Issue
- Unable to use
_PC_CHOWN_RESTRICTEDin Perl on RHEL 8 - Checking for POSIX-compatible file permissions like
chowndoes not work on RHEL 8, but used to work on RHEL 7:
rhel7 $ perl -e 'use POSIX; print POSIX::sysconf(&POSIX::_PC_CHOWN_RESTRICTED), "\n";'
6
rhel8 $ perl -e 'use POSIX; print POSIX::sysconf(&POSIX::_PC_CHOWN_RESTRICTED), "\n";'
(empty newline)
Environment
- Red Hat Enterprise Linux 8
perl-5.26.3-422.el8- Perl POSIX module
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.