[GHC] #8248: GHCi should not warn if group writable
GHC
ghc-devs at haskell.org
Sat Sep 7 07:43:35 CEST 2013
#8248: GHCi should not warn if group writable
----------------------------+----------------------------------------------
Reporter: afcowie | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.6.3
Keywords: | Operating System: Linux
Architecture: | Type of failure: GHC rejects valid program
Unknown/Multiple | Test Case:
Difficulty: Unknown | Blocking:
Blocked By: |
Related Tickets: |
----------------------------+----------------------------------------------
Any number of Linux distros support the idea of user groups, whereby when
a new user is created there is also simultaneously a group created with
the same name; ie, instead of
{{{
-rw-r--r--. 1 andrew users 19 Sep 5 08:29 ghci.conf
}}}
as us old traditionalists would have it, you get
{{{
-rw-rw-r--. 1 andrew andrew 19 Sep 5 08:29 ghci.conf
}}}
because the umask in such cases is 0002 instead of 0022.
There is entirely nothing unusual or incorrect about this approach, and it
is followed, for example, in the Fedora family of distros.
GHC, however, is being a bit silly in emitting the following:
{{{
$ 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: /home/andrew/.ghc/ghci.conf is writable by someone else,
IGNORING!
Prelude>
}}}
Foremost the fact that the file is group writable is not a problem and the
user's choice, //particularly// in this case because it's group writable
in the user's group! Regardless of that, GHCi should not be ignoring files
with other than 0644 permissions; this isn't `.ssh/`.
Can this check and attendant behaviour be removed?
AfC
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8248>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list