#5848: Calling ghc without -o overwrites symbolic links
-----------------------+----------------------------------------------------
Reporter: Ptival | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.0.3
Resolution: invalid | Keywords: linker symbolic link overwrite
Os: Linux | Architecture: x86_64 (amd64)
Failure: Other | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
-----------------------+----------------------------------------------------
Changes (by igloo):
* status: new => closed
* difficulty: => Unknown
* resolution: => invalid
Comment:
Thanks for the report.
The behaviour when the output file is a symlink is standard behaviour,
e.g. "`gcc link.c -o link`" would do the same.
If there is a directory called `link` then I get
{{{
Linking link ...
/usr/bin/ld: cannot open output file link: Is a directory
collect2: ld returned 1 exit status
}}}
which looks right to me.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5848#comment:1>
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