
#8058: If .ghci is a symlink, permissions aren't read correctly -------------------------------+------------------------------------------- Reporter: berdario | Owner: Type: bug | Status: closed Priority: low | Milestone: Component: GHCi | Version: 7.6.2 Resolution: invalid | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Easy (less than 1 hour) Type of failure: Other | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------+------------------------------------------- Comment (by leroux): {{{ $ ghci GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. *** WARNING: /Users/leroux/Dropbox/src/dotfiles/haskell is writable by someone else, IGNORING! Prelude> Leaving GHCi. $ ls -l .ghci lrwxr-xr-x 1 leroux staff 44 Jul 30 10:02 .ghci -> /Users/leroux/.dotfiles/haskell/ghci.symlink $ ls -l `readlink .ghci` -rwxr-x--- 1 leroux staff 338 Sep 22 18:59 /Users/leroux/.dotfiles/haskell/ghci.symlink $ ls -ld `dirname $(readlink .ghci)` # this is equivalent to `/home/dario/.dotfiles/dotfiles` drwxr-x--x 4 leroux staff 136 Aug 9 00:41 /Users/leroux/.dotfiles/haskell # making the home of .ghci writable $ chmod ugo+w `dirname $(readlink .ghci)` $ ls -ld `dirname $(readlink .ghci)` drwxrwx-wx 4 leroux staff 136 Aug 9 00:41 /Users/leroux/.dotfiles/haskell $ ghci GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. *** WARNING: /Users/leroux/Dropbox/src/dotfiles/haskell is writable by someone else, IGNORING! }}} Note that `/Users/leroux/.dotfiles/haskell` is equivalent to `/home/dario/.dotfiles/dotfiles` as they are the directory where `.ghci` file lives. ---- berdario, it'd be helpful if you let us know what the directory permissions are (as rwbarton asked): {{{ ls -ld `dirname $(readlink .ghci) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8058#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler