[GHC] #9959: removeDirectoryRecursive should not follow symlinks

#9959: removeDirectoryRecursive should not follow symlinks -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: | Version: 7.11 libraries/directory | Operating System: Unknown/Multiple Keywords: | Type of failure: None/Unknown Architecture: | Blocked By: Unknown/Multiple | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- It's just, like, a really bad idea. And almost never what you want. (Also, it differs from the behavior of `rm -rf`). Can we just change the behavior? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9959 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9959: removeDirectoryRecursive should not follow symlinks -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: new Priority: high | Milestone: Component: | Version: 7.11 libraries/directory | Keywords: Resolution: | Architecture: Operating System: Unknown/Multiple | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by rwbarton): * priority: normal => high -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9959#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9959: removeDirectoryRecursive should not follow symlinks -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: new Priority: high | Milestone: Component: | Version: 7.11 libraries/directory | Keywords: Resolution: | Architecture: Operating System: Unknown/Multiple | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Rufflewind): Turns out the documentation was misleading, though [https://github.com/haskell/directory/issues/15 in some odd cases it does traverse symlinked directories]. The former documentation error has been fixed in [https://github.com/haskell/directory/commit/db88005a736f88ac212152d69ce4002f... db8800]. The latter bug should be fixed in [https://github.com/haskell/directory/pull/16 this pull request]. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9959#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9959: removeDirectoryRecursive should not follow symlinks -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: closed Priority: high | Milestone: Component: | Version: 7.11 libraries/directory | Keywords: Resolution: fixed | Architecture: Operating System: Unknown/Multiple | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by Rufflewind): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9959#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC