The documentation regarding availability of chown (perldoc -f chown) incorrectly uses the sysconf() function rather than the pathconf() function along with a path.
_PC* can only be used as parameters to pathconf()/fpathconf(). Only _SC* values can be used against sysconf().
Cannot speak to other systems but on all linux systems the original code would be returning the value for "_SC_TZNAME_MAX, The maximum number of bytes in a timezone name."
The documentation regarding availability of chown (
perldoc -f chown
) incorrectly uses the sysconf() function rather than the pathconf() function along with a path._PC* can only be used as parameters to pathconf()/fpathconf(). Only _SC* values can be used against sysconf().
Cannot speak to other systems but on all linux systems the original code would be returning the value for "_SC_TZNAME_MAX, The maximum number of bytes in a timezone name."