imcomplete attempt at supporting lutimes(3) for BSD compat

This commit is contained in:
Joey Hess 2011-03-20 14:04:39 -04:00
parent 140a351fc5
commit 6634b6a6b8
2 changed files with 58 additions and 28 deletions

View file

@ -58,7 +58,7 @@ cleanup file key = do
-- touch the symlink to have the same mtime as the file it points to
s <- liftIO $ getFileStatus file
let mtime = modificationTime s
liftIO $ touch file (TimeSpec mtime 0) False
liftIO $ touch file (TimeSpec mtime) False
Annex.queue "add" [Param "--"] file
return True