Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cabal man page installed with incorrect permissions #3653

Closed
0xmohit opened this issue Aug 1, 2016 · 1 comment
Closed

cabal man page installed with incorrect permissions #3653

0xmohit opened this issue Aug 1, 2016 · 1 comment

Comments

@0xmohit
Copy link
Contributor

0xmohit commented Aug 1, 2016

(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
@0xmohit
Copy link
Contributor Author

0xmohit commented Aug 1, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant