[GHC] #8248: GHCi should not fail to honour ghci.conf or .ghci if group writable

GHC ghc-devs at haskell.org
Tue Apr 7 13:43:14 UTC 2015


#8248: GHCi should not fail to honour ghci.conf or .ghci if group writable
-------------------------------------+-------------------------------------
        Reporter:  afcowie           |                   Owner:  whisky
            Type:  bug               |                  Status:  patch
        Priority:  normal            |               Milestone:  7.12.1
       Component:  GHCi              |                 Version:  7.6.3
      Resolution:                    |                Keywords:  newcomer
Operating System:  Linux             |            Architecture:
 Type of failure:  GHC rejects       |  Unknown/Multiple
  valid program                      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:  #9324             |  Differential Revisions:  Phab:D805
-------------------------------------+-------------------------------------

Comment (by Thomas Miedema <thomasmiedema@…>):

 In [changeset:"b972de0365f94e1be9d78537152eee969dc5f4cb/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="b972de0365f94e1be9d78537152eee969dc5f4cb"
 Suggest how to fix .ghci when it is group writeable (#8248)

 ```
 chmod 664 $PATH_TO_GHCI_CONF/.ghci
 ```

 Run ghci. You will now get a warning + a suggestion:

 ```
   *** WARNING: $PATH_TO_GHCI_CONF/.ghci is writable by someone else,
 IGNORING!
   Suggested fix: execute 'chmod 644 $PATH_TO_GHCI_CONF/.ghci'
 ```

 Execute fix and the warning should disappear.

 Reviewed By: mboes, thomie

 Differential Revision: https://phabricator.haskell.org/D805
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8248#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list