Skip to content

perldoc does not generate doc properly if run as root and file is not world readable #17701

Closed
@daniel4andre

Description

@daniel4andre

If I have a file (in fact a script that uses Pod::Usage to generate man page) that can be read only by root (mode is 0700), perldoc can't generate documentation:
perldoc bar.pod Error while formatting with Pod::Perldoc::ToTerm: Can't open bar.pod: Permission denied at /usr/share/perl/5.26/Pod/Perldoc/ToTerm.pm line 113.
I get a similar result if directory is readable only by root.

If run by root, privileges are dropped and the file or directory cannot be accessed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions