Skip to content

cabal man page installed with incorrect permissions #3653

Closed

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

Activity

  1. 0xmohit commented on Aug 1, 2016

    @0xmohit
    ContributorAuthor

    This seems to be fixed if installOrdinaryFiles is used instead of copyFiles in Setup.hs.

  2. added a commit that references this issue on Aug 2, 2016
    477a554
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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