Skip to content

Commit

Permalink
!should_fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Rufflewind committed Jul 7, 2024
1 parent 40df015 commit 4e58365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion System/Directory/Internal/Posix.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ type FileRef = Posix.Fd
withFileRef :: Maybe FileRef -> OsPath -> (FileRef -> IO r) -> IO r
withFileRef dirRef (OsString name) =
bracket
(Posix.openFdAt dirRef name Posix.ReadOnly defaultFlags)
(Posix.openFdAt dirRef name Posix.ReadOnly defaultFlags { Posix.nofollow = True, Posix.directory = True })
Posix.closeFd

data Subref = NotSubdir -- ^ Not a directory (perhaps regular file or symlink).
Expand Down

0 comments on commit 4e58365

Please sign in to comment.