[GHC] #11003: Suggested fix for incorrect directory permissions is wrong

GHC ghc-devs at haskell.org
Thu Oct 22 14:30:21 UTC 2015


#11003: Suggested fix for incorrect directory permissions is wrong
-------------------------------------+-------------------------------------
           Reporter:  dfeuer         |             Owner:
               Type:  bug            |            Status:  new
           Priority:  high           |         Milestone:  7.10.3
          Component:  GHCi           |           Version:  7.10.2
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Incorrect
  Unknown/Multiple                   |  warning at compile-time
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 If the current directory is group- or world- writable, I get an error

 {{{
 *** WARNING: /home/blahblah/src/yproj is writable by someone else,
 IGNORING!
 Suggested fix: execute 'chmod 644 /home/blahblah/src/yproj'
 }}}

 This is extremely bad advice, because `644 = rw-r--r--`, meaning the
 directory is not executable, so nothing it contains can be accessed, and a
 user who's insufficiently familiar with Unix permissions will be very
 confused. The message should instead suggest `755=rwxr-xr-x`.

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


More information about the ghc-tickets mailing list