]> dgit.raspbian.org Git - git-annex.git/commit
add --force-small: Don't dereference link when checking file status
authorKyle Meyer <kyle@kyleam.com>
Mon, 23 Mar 2020 19:45:15 +0000 (15:45 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 26 Mar 2020 17:11:27 +0000 (13:11 -0400)
commit339aebc6adfc7946e408cf8aef8d0c424dff323a
treefaed5e27ab5252002c2ae1012e083bee4bccba61
parentb426ff682570d8600dc8025bbcd20aa95819a7e4
add --force-small: Don't dereference link when checking file status

addSmallOverridden calls getFileStatus and then checks the result with
isSymbolicLink.  getFileStatus dereferences symbolic links, so
isSymbolicLink will always return false (assuming the getFileStatus
call doesn't fail on a broken link).  Use getSymbolicLinkStatus
instead.
Command/Add.hs