#5578: write access permission of binary result different on OpenBSD
---------------------------+------------------------------------------------
Reporter: ivdsangen | Owner: igloo
Type: bug | Status: new
Priority: low | Milestone: 7.6.2
Component: Test Suite | Version: 7.2.1
Keywords: | Os: OpenBSD
Architecture: x86 | Failure: Runtime crash
Difficulty: | Testcase: getPermissions001
Blockedby: | Blocking:
Related: |
---------------------------+------------------------------------------------
Comment(by iquiw):
The behavior is same on NetBSD. I suppose it is same on FreeBSD too (not
checked).
To handle ETXTBSY (and EROFS) in unix package will fix it.
This fix seems proper on Linux according to the man page.
http://man7.org/linux/man-pages/man2/access.2.html
{{{
access() shall fail if:
EROFS Write permission was requested for a file on a read-only file
system.
}}}
{{{
access() may fail if:
ETXTBSY
Write access was requested to an executable which is being
executed.
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5578#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs