Skip to content

cabal man page installed with incorrect permissions #3653

Closed
@0xmohit

Description

@0xmohit

(Using cabal-install-1.24.0.0)

The manpage for cabal is installed with permissions -rw-------. Note that it's neither readable by the group nor by others.

$  man -w cabal
man: can't open /usr/local/man/man1/cabal.1: Permission denied

The permissions are, indeed, broken:

$  ls -l $(realpath /usr/local/man/man1/cabal.1)
-rw------- 1 root root 91468 Aug  1 22:56 /usr/local/share/man/man1/cabal.1

It is worth adding that the generated files in dist have correct permissions:

$  ls -la dist/build/cabal/
total 33056
drwxr-xr-x 3 root root     4096 Aug  1 22:56 .
drwxr-xr-x 4 root root     4096 Aug  1 22:54 ..
-rwxr-xr-x 1 root root 33735528 Aug  1 22:56 cabal
-rw-r--r-- 1 root root    91468 Aug  1 22:56 cabal.1
drwxr-xr-x 4 root root     4096 Aug  1 22:56 cabal-tmp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions