kqueue: Fix bug that made broken symlinks not be noticed.

This commit is contained in:
Joey Hess 2012-12-14 16:28:27 -04:00
parent 82617b92e9
commit 3b54c1d3e4
3 changed files with 10 additions and 2 deletions

View file

@ -80,7 +80,7 @@ getDirInfo dir = do
return $ DirInfo dir contents
where
getDirEnt f = catchMaybeIO $ do
s <- getFileStatus (dir </> f)
s <- getSymbolicLinkStatus (dir </> f)
return $ DirEnt f (fileID s) (isDirectory s)
{- Difference between the dirCaches of two DirInfos. -}

6
debian/changelog vendored
View file

@ -1,3 +1,9 @@
git-annex (3.20121212) UNRELEASED; urgency=low
* kqueue: Fix bug that made broken symlinks not be noticed.
-- Joey Hess <joeyh@debian.org> Fri, 14 Dec 2012 16:25:14 -0400
git-annex (3.20121211) unstable; urgency=low
* webapp: Defaults to sharing box.com account info with friends, allowing

View file

@ -63,4 +63,6 @@ One compiled using cabal from checkout 739c937
Please provide any additional information below.
> [[fixed|done]]; this turned out to be an kqueue specific bug,
> the kqueue code statted new files, but that files for a broken symlink.
> Using lstat instead fixed this. --[[Joey]]